diff 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
line wrap: on
line diff
--- a/bink.c	Tue Feb 23 06:36:26 2010 +0000
+++ b/bink.c	Tue Feb 23 11:01:51 2010 +0000
@@ -220,7 +220,8 @@
                                            != 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;
         }
     }