mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
rtpdec_h264: Return immediately on errors in h264_handle_packet_stap_a
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ö <martin@martin.st>
This commit is contained in:
parent
bb8c6ac840
commit
176903ce83
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user