From 176903ce833ce7469f411640e9748a0d549b5285 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 19 Feb 2015 21:28:01 +0200 Subject: rtpdec_h264: Return immediately on errors in h264_handle_packet_stap_a MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, errors were only logged but the code kept on trying, and never actually returning the error as a return value. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_h264.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtpdec_h264.c') diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 8dab0d2c81..5b875296ac 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -208,6 +208,7 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt, } else { av_log(ctx, AV_LOG_ERROR, "nal size exceeds length: %d %d\n", nal_size, src_len); + return AVERROR_INVALIDDATA; } // eat what we handled -- cgit v1.2.3