aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-06-24 08:50:46 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-06-24 08:50:46 +0000
commita2f3851166fab01d472273ce3ef9025d1764bf77 (patch)
tree5a7ed917a585c587a79915cd0b8af51c16e0f7ec /libavformat/mov.c
parent69fc436cbca24fe78c4486dd3acd70880c1f4e27 (diff)
downloadffmpeg-a2f3851166fab01d472273ce3ef9025d1764bf77.tar.gz
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). Originally committed as revision 19262 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3fb831f5fa..3b9cc267d8 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2107,8 +2107,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
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;