[FFmpeg-devel] [PATCH 04/11] avformat/hevc: don't write NALUs with nuh_layer_id > 0 in hvcC boxes

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sun Jul 7 18:46:28 EEST 2024


James Almer:
> hvcC should only contain nuh_layer_id == 0 NALUs. Support for a box meant to
> contain higher layer NALUs will be added in a following patch.
> To achieve this, all sources are parsed and filtered, including hvcC source
> that until now were propagated untouched. This is reflected in how the affected
> reference files now have ps_array_completeness set to 0 instead of 1 for some
> non-PS NALUs.

Was the earlier stuff wrong?

> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavformat/hevc.c                         | 140 ++++++++++++++++-----
>  libavformat/hevc.h                         |   3 +-
>  tests/ref/fate/enhanced-flv-hevc           |   4 +-
>  tests/ref/fate/matroska-dovi-write-config8 |   4 +-
>  tests/ref/lavf-fate/hevc.flv               |   2 +-
>  5 files changed, 118 insertions(+), 35 deletions(-)
> 



More information about the ffmpeg-devel mailing list