Commit 037b3bd1 authored by Zhao Zhili's avatar Zhao Zhili Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b9d1f5bf
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment