Commit 1e126560 authored by James Almer's avatar James Almer

avformat/av1: return an error when no data is provided to ff_isom_write_av1c()

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 4e937b1a
......@@ -82,6 +82,9 @@ int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int size)
int64_t obu_size;
int start_pos, type, temporal_id, spatial_id;
if (size <= 0)
return AVERROR_INVALIDDATA;
while (size > 0) {
int ret = parse_obu_header(buf, size, &obu_size, &start_pos,
&type, &temporal_id, &spatial_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment