mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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>
This commit is contained in:
parent
176903ce83
commit
a335ed7671
@ -214,10 +214,6 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt,
|
|||||||
// eat what we handled
|
// eat what we handled
|
||||||
src += nal_size;
|
src += nal_size;
|
||||||
src_len -= 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) {
|
if (pass == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user