diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-09-23 21:43:43 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-09-25 16:53:49 -0400 |
commit | b15a9888a8f8e8cc9784ffd8d5d0307900fb78bb (patch) | |
tree | 6900c1eb68128853b805c8816ff734a036bd940e /libavformat | |
parent | 88f908fbdc19dec17f2bb223e6d1fffc3408e6a5 (diff) | |
download | ffmpeg-b15a9888a8f8e8cc9784ffd8d5d0307900fb78bb.tar.gz |
sol: return error if av_get_packet() fails.
This prevents sending a packet with data=NULL size=AVERROR_EOF.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/sol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/sol.c b/libavformat/sol.c index 6ca8d1c1ee..920582f3d1 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -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 |