we need them later --- libavformat/av1dec.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c index 297e87cc52..ec66152e03 100644 --- a/libavformat/av1dec.c +++ b/libavformat/av1dec.c @@ -60,14 +60,9 @@ static int leb(AVIOContext *pb, uint32_t *len) { static int read_obu(const uint8_t *buf, int size, int64_t *obu_size, int *type, int *has_size_flag) { int start_pos, temporal_id, spatial_id; - int len; - len = parse_obu_header(buf, size, obu_size, &start_pos, + return parse_obu_header(buf, size, obu_size, &start_pos, type, &temporal_id, &spatial_id, has_size_flag); - if (len < 0) - return len; - - return 0; } static int annexb_probe(const AVProbeData *p) @@ -137,8 +132,8 @@ static int annexb_probe(const AVProbeData *p) break; } - temporal_unit_size -= obu_unit_size + ret; - frame_unit_size -= obu_unit_size + ret; + temporal_unit_size -= obu_unit_size; + frame_unit_size -= obu_unit_size; } while (frame_unit_size); return 0; -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".