diff options
author | James Almer <[email protected]> | 2019-10-15 11:38:23 -0300 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2022-04-07 16:26:59 +0200 |
commit | c4629d8abe270ec5e5d79f7d18cd0b12cd5fd797 (patch) | |
tree | 8ad3594a1ba96421e9eac1a327d7e0f0d9b5950c | |
parent | c55cf1d0ccf4c92219021804c9b0463c242ae47d (diff) |
avformat/latmenc: abort if no extradata is available
Fixes ticket #8273.
Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: James Almer <[email protected]>
(cherry picked from commit dd01947397b98e94c3f2a79d5820aaf4594f4d3b)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavformat/latmenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 8eb219f8ae..0ccf401b35 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -176,7 +176,8 @@ static int latm_write_packet(AVFormatContext *s, AVPacket *pkt) if (ret < 0) return ret; memcpy(par->extradata, side_data, side_data_size); - } + } else + return AVERROR_INVALIDDATA; } } |