aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libx265.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-01 01:58:22 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-01 16:38:28 +0100
commit34e3810b04cadf4ccb0d96b9d36a9daf45179c05 (patch)
tree6c42ba238eaefdf8953ca65dc73c49bb79dd42ac /libavcodec/libx265.c
parent2968da7d9e9054e97597c6b7b7b42e9ea453563e (diff)
downloadffmpeg-34e3810b04cadf4ccb0d96b9d36a9daf45179c05.tar.gz
avformat/matroskaenc: Check return value of ff_isom_write_hvcc()
The Matroska muxer currently does not check the return value of ff_isom_write_hvcc(), the function used to write mp4-style HEVC-extradata as Matroska also uses it. This was intentionally done in 7a5356c72 to allow remuxing from mpeg-ts. But if ff_isom_write_hvcc() fails, it has not output anything and the file ends up without CodecPrivate and, if the input was Annex B, with Annex B data, which is against the spec. So check the return value again. The underlying issue of not having extradata seems to have been fixed by the introduction of the extract_extradata bitstream filter. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/libx265.c')
0 files changed, 0 insertions, 0 deletions