The if statement just above checks the same, so there's no possibility that src_len ends up negative. --- 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) { -- 1.9.3 (Apple Git-50) _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel