Commit 332a4d79 authored by Paul B Mahol's avatar Paul B Mahol

avformat/lafdec: error out on partial packet header read

parent 4e3e70c1
......@@ -185,7 +185,9 @@ again:
if (s->index >= ctx->nb_streams) {
int cur_st = 0, st_count = 0, st_index = 0;
avio_read(pb, s->header, s->header_len);
ret = ffio_read_size(pb, s->header, s->header_len);
if (ret < 0)
return ret;
for (int i = 0; i < s->header_len; i++) {
uint8_t val = s->header[i];
......
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