summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_h264.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-19 21:28:58 +0200
committerMartin Storsjö <martin@martin.st>2015-02-20 19:29:58 +0200
commita335ed767161c6da2815371177cfd5e40f78e5b7 (patch)
tree28e19ba78f89b28d031bf230a317fbe772d0bf70 /libavformat/rtpdec_h264.c
parent176903ce833ce7469f411640e9748a0d549b5285 (diff)
rtpdec_h264: Remove an unnecessary check
If src_len is too small for nal_size, we already print a warning above, and the next step is to check the while loop condition anyway, so this one serves no purpose. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r--libavformat/rtpdec_h264.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index 5b875296ac..5ffb4c4fee 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -214,10 +214,6 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt,
// eat what we handled
src += nal_size;
src_len -= nal_size;
-
- if (src_len < 0)
- av_log(ctx, AV_LOG_ERROR,
- "Consumed more bytes than we got! (%d)\n", src_len);
}
if (pass == 0) {