Module: libav Branch: master Commit: a335ed767161c6da2815371177cfd5e40f78e5b7
Author: Martin Storsjö <[email protected]> Committer: Martin Storsjö <[email protected]> Date: Thu Feb 19 21:28:58 2015 +0200 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ö <[email protected]> --- libavformat/rtpdec_h264.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 5b87529..5ffb4c4 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) { _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
