mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-14 03:11:20 +00:00
cbs_h264: Fix writing streams with auxiliary pictures
Tested with the alphaconformanceG sample.
This commit is contained in:
parent
ec683ed527
commit
9ed18f302b
@ -1002,7 +1002,7 @@ static int cbs_h264_write_nal_unit(CodedBitstreamContext *ctx,
|
||||
|
||||
case H264_NAL_SPS_EXT:
|
||||
{
|
||||
H264RawSPSExtension *sps_ext;
|
||||
H264RawSPSExtension *sps_ext = unit->content;
|
||||
|
||||
err = cbs_h264_write_sps_extension(ctx, pbc, sps_ext);
|
||||
if (err < 0)
|
||||
@ -1026,6 +1026,7 @@ static int cbs_h264_write_nal_unit(CodedBitstreamContext *ctx,
|
||||
|
||||
case H264_NAL_SLICE:
|
||||
case H264_NAL_IDR_SLICE:
|
||||
case H264_NAL_AUXILIARY_SLICE:
|
||||
{
|
||||
H264RawSlice *slice = unit->content;
|
||||
BitstreamContext bc;
|
||||
|
Loading…
Reference in New Issue
Block a user