You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/av1: return an error when no data is provided to ff_isom_write_av1c()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -82,6 +82,9 @@ int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int size)
|
|||||||
int64_t obu_size;
|
int64_t obu_size;
|
||||||
int start_pos, type, temporal_id, spatial_id;
|
int start_pos, type, temporal_id, spatial_id;
|
||||||
|
|
||||||
|
if (size <= 0)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
while (size > 0) {
|
while (size > 0) {
|
||||||
int ret = parse_obu_header(buf, size, &obu_size, &start_pos,
|
int ret = parse_obu_header(buf, size, &obu_size, &start_pos,
|
||||||
&type, &temporal_id, &spatial_id);
|
&type, &temporal_id, &spatial_id);
|
||||||
|
Reference in New Issue
Block a user