Revision a74008a4 libavcodec/parser.c
libavcodec/parser.c | ||
---|---|---|
124 | 124 |
s->fetch_timestamp=0; |
125 | 125 |
s->last_pts = pts; |
126 | 126 |
s->last_dts = dts; |
127 |
s->last_offset = 0; |
|
127 | 128 |
s->cur_frame_pts[k] = |
128 | 129 |
s->cur_frame_dts[k] = AV_NOPTS_VALUE; |
129 | 130 |
} |
... | ... | |
138 | 139 |
s->frame_offset = s->last_frame_offset; |
139 | 140 |
s->pts = s->last_pts; |
140 | 141 |
s->dts = s->last_dts; |
142 |
s->offset = s->last_offset; |
|
141 | 143 |
|
142 | 144 |
/* offset of the next frame */ |
143 | 145 |
s->last_frame_offset = s->cur_offset + index; |
... | ... | |
156 | 158 |
|
157 | 159 |
s->last_pts = s->cur_frame_pts[k]; |
158 | 160 |
s->last_dts = s->cur_frame_dts[k]; |
161 |
s->last_offset = s->last_frame_offset - s->cur_frame_offset[k]; |
|
159 | 162 |
|
160 | 163 |
/* some parsers tell us the packet size even before seeing the first byte of the next packet, |
161 | 164 |
so the next pts/dts is in the next chunk */ |
Also available in: Unified diff