avformat/wavdec: Fix smv packet interleaving
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Oct 2013 10:50:26 +0000 (12:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Oct 2013 10:50:26 +0000 (12:50 +0200)
This strips the relative timestamp "flag" off.

Fixes Ticket2849

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/wavdec.c

index 8ae7b45..202683b 100644 (file)
@@ -466,8 +466,8 @@ static int wav_read_packet(AVFormatContext *s, AVPacket *pkt)
     if (wav->smv_data_ofs > 0) {
         int64_t audio_dts, video_dts;
 smv_retry:
-        audio_dts = s->streams[0]->cur_dts;
-        video_dts = s->streams[1]->cur_dts;
+        audio_dts = (int32_t)s->streams[0]->cur_dts;
+        video_dts = (int32_t)s->streams[1]->cur_dts;
 
         if (audio_dts != AV_NOPTS_VALUE && video_dts != AV_NOPTS_VALUE) {
             /*We always return a video frame first to get the pixel format first*/