[FFmpeg-cvslog] r19262 - trunk/libavformat/mov.c

reimar subversion
Wed Jun 24 10:50:46 CEST 2009


Author: reimar
Date: Wed Jun 24 10:50:46 2009
New Revision: 19262

Log:
mov_read_packet: if dv_get_packet fails, return exactly its error value
instead of always -1 (makes no real difference currently since dv_get_packet
always returns -1 so far).

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Wed Jun 24 10:23:40 2009	(r19261)
+++ trunk/libavformat/mov.c	Wed Jun 24 10:50:46 2009	(r19262)
@@ -2107,8 +2107,9 @@ static int mov_read_packet(AVFormatConte
         dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
         av_free(pkt->data);
         pkt->size = 0;
-        if (dv_get_packet(mov->dv_demux, pkt) < 0)
-            return -1;
+        ret = dv_get_packet(mov->dv_demux, pkt);
+        if (ret < 0)
+            return ret;
     }
 #endif
     pkt->stream_index = sc->ffindex;



More information about the ffmpeg-cvslog mailing list