diff options
author | Peter Ross <pross@xvid.org> | 2010-02-23 11:01:51 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2010-02-23 11:01:51 +0000 |
commit | b62c65f23e63168c3008dd2aa1c96326bf0e47a0 (patch) | |
tree | e579d3f7472f440e62a7b22a8b2a2444f713b551 | |
parent | c8c77d8d97be1eb863da606d282590c8ef5c44e5 (diff) | |
download | ffmpeg-b62c65f23e63168c3008dd2aa1c96326bf0e47a0.tar.gz |
Bink audio pts starts at 0, not reported_size
Originally committed as revision 21994 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/bink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c index 2d4a2ddd68..e75bacda02 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -220,7 +220,8 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) != audio_size) return ret; pkt->stream_index = bink->current_track; - pkt->pts = bink->audio_pts[bink->current_track - 1] += reported_size; + pkt->pts = bink->audio_pts[bink->current_track - 1]; + bink->audio_pts[bink->current_track -1] += reported_size; return 0; } } |