The code is only called if size is > 0 so buf should not be NULL Helps: CID610554
Unified · Split
| @@ -3701,6 +3701,8 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, AVBufferRef *buf · 3700 unmodified lines | |||
| 3701 | uint64_t num; | 3701 | uint64_t num; |
| 3702 | int trust_default_duration; | 3702 | int trust_default_duration; |
| 3703 | 3703 | ||
| 3704 | av_assert1(buf); | ||
| 3705 | |||
| 3704 | ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL); | 3706 | ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL); |
| 3705 | 3707 | ||
| 3706 | if ((n = ebml_read_num(matroska, &pb.pub, 8, &num, 1)) < 0) | 3708 | if ((n = ebml_read_num(matroska, &pb.pub, 8, &num, 1)) < 0) |