diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2018-09-06 17:01:49 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-09-07 20:35:54 +0200 |
commit | 037b3bd14a8d6ffe4cecd0875bfb021b6edfc2a4 (patch) | |
tree | 815eb13fc9586d04cb7a6f5e8b14bf43e5c158dc /libavcodec/h264dec.c | |
parent | b9d1f5bf68111772e552421d21a32b0d61718899 (diff) | |
download | ffmpeg-037b3bd14a8d6ffe4cecd0875bfb021b6edfc2a4.tar.gz |
avcodec/h264dec: remove unnecessary checks in h264_decode_frame
These conditions are checked again in is_extra(). This patch makes no
functional changes.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r-- | libavcodec/h264dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 1f44ed18d9..7b4c5c76ea 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -986,7 +986,7 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data, &h->ps, &h->is_avc, &h->nal_length_size, avctx->err_recognition, avctx); } - if(h->is_avc && buf_size >= 9 && buf[0]==1 && buf[2]==0 && (buf[4]&0xFC)==0xFC && (buf[5]&0x1F) && buf[8]==0x67){ + if (h->is_avc && buf_size >= 9 && buf[0]==1 && buf[2]==0 && (buf[4]&0xFC)==0xFC) { if (is_extra(buf, buf_size)) return ff_h264_decode_extradata(buf, buf_size, &h->ps, &h->is_avc, &h->nal_length_size, |