diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 4fc2aed302..1f399ab838 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -293,12 +293,9 @@ const uint8_t *ff_h264_decode_nal(H264Context *h, H264SliceContext *sl, if(i>=length-1){ //no escaped 0 *dst_length= length; *consumed= length+1; //+1 for the header - if(h->avctx->flags2 & AV_CODEC_FLAG2_FAST){ - return src; - }else{ - memcpy(dst, src, length); - return dst; - } + + memcpy(dst, src, length); + return dst; } memcpy(dst, src, i);