[FFmpeg-devel] [PATCH 1/1] h264: remove skip of h264 parsing independent of skip_frame
Joakim Plate
elupus at ecce.se
Mon Dec 16 01:24:12 CET 2013
This give a small performance hit since we do complete stream
parsing. The actual slice decoding of frame's are still skipped.
With this change, decoder can be set to AVDISCARD_ALL and still
calculate has_b_frame and similar fields correctly.
---
libavcodec/h264.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 0028227..2fcc243 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4846,11 +4846,6 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
first_slice = hx->nal_unit_type;
}
- if (avctx->skip_frame >= AVDISCARD_NONREF &&
- h->nal_ref_idc == 0 &&
- h->nal_unit_type != NAL_SEI)
- continue;
-
again:
/* Ignore per frame NAL unit type during extradata
* parsing. Decoding slices is not possible in codec init
--
1.8.2
More information about the ffmpeg-devel
mailing list