diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-09-23 16:46:11 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-09-25 20:42:42 +0100 |
commit | 9ed18f302b09e444f5b1be01979cce62c4b2c04a (patch) | |
tree | e8c0510af80481cc9fea69ec84be18c44e9c5f86 /libavcodec/cbs_h2645.c | |
parent | ec683ed527cef9aad208d1daeb10d0e7fb63e75e (diff) | |
download | ffmpeg-9ed18f302b09e444f5b1be01979cce62c4b2c04a.tar.gz |
cbs_h264: Fix writing streams with auxiliary pictures
Tested with the alphaconformanceG sample.
Diffstat (limited to 'libavcodec/cbs_h2645.c')
-rw-r--r-- | libavcodec/cbs_h2645.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 50a227da78..a1b887fd4c 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -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; |