diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 6a85f819de..6a9759ac21 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -208,6 +208,7 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, PayloadContext *data, } 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