Commit b15a9888 authored by Justin Ruggles's avatar Justin Ruggles

sol: return error if av_get_packet() fails.

This prevents sending a packet with data=NULL size=AVERROR_EOF.
parent 88f908fb
......@@ -132,6 +132,8 @@ static int sol_read_packet(AVFormatContext *s,
if (s->pb->eof_reached)
return AVERROR(EIO);
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
if (ret < 0)
return ret;
pkt->stream_index = 0;
/* note: we need to modify the packet size here to handle the last
......
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