diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2013-09-09 10:05:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-09 11:42:26 +0200 |
commit | 7d75fb381ba774a8d2fa7de0c12140cd465c0255 (patch) | |
tree | 3dbcaca6249b1617f7c3b6678a03ea0d597fd7ee /libavcodec/h264.c | |
parent | 8702a94e49922880f5d5b89ce41a0a776c0f9561 (diff) | |
download | ffmpeg-7d75fb381ba774a8d2fa7de0c12140cd465c0255.tar.gz |
h264: do not discard NAL_SEI when skipping frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index a9995bd8bc..09898a6bb7 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -4757,8 +4757,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size, first_slice = hx->nal_unit_type; } - // FIXME do not discard SEI id - if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0) + if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0 && h->nal_unit_type != NAL_SEI) continue; again: |