Commit 1576b38e authored by pross's avatar pross

Bink audio pts starts at 0, not reported_size

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21994 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b752587e
...@@ -220,7 +220,8 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -220,7 +220,8 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
!= audio_size) != audio_size)
return ret; return ret;
pkt->stream_index = bink->current_track; 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; return 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment