summaryrefslogtreecommitdiff
path: root/libavformat/yuv4mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/yuv4mpeg.c')
-rw-r--r--libavformat/yuv4mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c
index 182536c4f7..6ebe185b64 100644
--- a/libavformat/yuv4mpeg.c
+++ b/libavformat/yuv4mpeg.c
@@ -214,7 +214,7 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
packet_size = avpicture_get_size(st->codec.pix_fmt, width, height);
if (packet_size < 0)
- av_abort();
+ return -1;
if (av_new_packet(pkt, packet_size) < 0)
return AVERROR_IO;