summaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-20 21:48:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-20 21:48:32 +0100
commitac7128a90f53c2ff6f49a2af50bd227df472daca (patch)
treebb006f2f80ebcbb7a796ae03cea93deeeef21ca1 /libavformat/rtpdec_h264.c
parent48e661b30b94b3a0f4f635a8a6005619c4e51eb0 (diff)
parent176903ce833ce7469f411640e9748a0d549b5285 (diff)
downloadffmpeg-streaming-ac7128a90f53c2ff6f49a2af50bd227df472daca.zip
ffmpeg-streaming-ac7128a90f53c2ff6f49a2af50bd227df472daca.tar.gz
Merge commit '176903ce833ce7469f411640e9748a0d549b5285'
* commit '176903ce833ce7469f411640e9748a0d549b5285': rtpdec_h264: Return immediately on errors in h264_handle_packet_stap_a Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r--libavformat/rtpdec_h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index 6a85f81..6a9759a 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
OpenPOWER on IntegriCloud