Commit c8c8ed94 authored by reimar's avatar reimar

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).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19262 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ddd5fa9c
......@@ -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;
......
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