You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
cbs_h264: Fix writing streams with auxiliary pictures
Tested with the alphaconformanceG sample.
Fixes CID 1419836.
(cherry picked from commit 9ed18f302b
)
This commit is contained in:
@@ -1008,7 +1008,7 @@ static int cbs_h264_write_nal_unit(CodedBitstreamContext *ctx,
|
|||||||
|
|
||||||
case H264_NAL_SPS_EXT:
|
case H264_NAL_SPS_EXT:
|
||||||
{
|
{
|
||||||
H264RawSPSExtension *sps_ext;
|
H264RawSPSExtension *sps_ext = unit->content;
|
||||||
|
|
||||||
err = cbs_h264_write_sps_extension(ctx, pbc, sps_ext);
|
err = cbs_h264_write_sps_extension(ctx, pbc, sps_ext);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
@@ -1032,6 +1032,7 @@ static int cbs_h264_write_nal_unit(CodedBitstreamContext *ctx,
|
|||||||
|
|
||||||
case H264_NAL_SLICE:
|
case H264_NAL_SLICE:
|
||||||
case H264_NAL_IDR_SLICE:
|
case H264_NAL_IDR_SLICE:
|
||||||
|
case H264_NAL_AUXILIARY_SLICE:
|
||||||
{
|
{
|
||||||
H264RawSlice *slice = unit->content;
|
H264RawSlice *slice = unit->content;
|
||||||
GetBitContext gbc;
|
GetBitContext gbc;
|
||||||
|
Reference in New Issue
Block a user