summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_h264.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-19 21:28:01 +0200
committerMartin Storsjö <martin@martin.st>2015-02-20 19:29:39 +0200
commit176903ce833ce7469f411640e9748a0d549b5285 (patch)
tree6fb5ebbedcfb015deecf77ed59abac6c199dc34a /libavformat/rtpdec_h264.c
parentbb8c6ac840afa69dd37860fdf85da9f4cf1e0ae4 (diff)
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>
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 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