OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
176903c
)
rtpdec_h264: Remove an unnecessary check
author
Martin Storsjö
<martin@martin.st>
Thu, 19 Feb 2015 19:28:58 +0000
(21:28 +0200)
committer
Martin Storsjö
<martin@martin.st>
Fri, 20 Feb 2015 17:29:58 +0000
(19:29 +0200)
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>
libavformat/rtpdec_h264.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec_h264.c
b/libavformat/rtpdec_h264.c
index
5b87529
..
5ffb4c4
100644
(file)
--- 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) {