Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ffmpeg patchfile for backport ab433b2
- Loading branch information
1 parent
ab433b2
commit e1c11b9
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
lib/ffmpeg/patches/0056-backport-h264-do-not-discard-NAL_SEI-when-skipping-frames.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/lib/ffmpeg/libavcodec/h264.c b/lib/ffmpeg/libavcodec/h264.c | ||
index 85f2372..1cab49f 100644 | ||
--- a/lib/ffmpeg/libavcodec/h264.c | ||
+++ b/lib/ffmpeg/libavcodec/h264.c | ||
@@ -4523,8 +4523,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: |