Mercurial > libavformat.hg
comparison bink.c @ 5699:2ace2ee84929 libavformat
Bink audio pts starts at 0, not reported_size
author | pross |
---|---|
date | Tue, 23 Feb 2010 11:01:51 +0000 |
parents | 92fa6b12dc40 |
children | 8a605bb5cee4 |
comparison
equal
deleted
inserted
replaced
5698:92fa6b12dc40 | 5699:2ace2ee84929 |
---|---|
218 /* get one audio packet per track */ | 218 /* get one audio packet per track */ |
219 if ((ret = av_get_packet(pb, pkt, audio_size)) | 219 if ((ret = av_get_packet(pb, pkt, audio_size)) |
220 != audio_size) | 220 != audio_size) |
221 return ret; | 221 return ret; |
222 pkt->stream_index = bink->current_track; | 222 pkt->stream_index = bink->current_track; |
223 pkt->pts = bink->audio_pts[bink->current_track - 1] += reported_size; | 223 pkt->pts = bink->audio_pts[bink->current_track - 1]; |
224 bink->audio_pts[bink->current_track -1] += reported_size; | |
224 return 0; | 225 return 0; |
225 } | 226 } |
226 } | 227 } |
227 | 228 |
228 /* get video packet */ | 229 /* get video packet */ |