early-access version 1680
This commit is contained in:
6
externals/ffmpeg/libavcodec/av1_parser.c
vendored
6
externals/ffmpeg/libavcodec/av1_parser.c
vendored
@@ -78,7 +78,7 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
|
||||
av_log(avctx, AV_LOG_WARNING, "Failed to parse extradata.\n");
|
||||
}
|
||||
|
||||
ff_cbs_fragment_reset(s->cbc, td);
|
||||
ff_cbs_fragment_reset(td);
|
||||
}
|
||||
|
||||
ret = ff_cbs_read(s->cbc, td, data, size);
|
||||
@@ -191,7 +191,7 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
|
||||
avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1}));
|
||||
|
||||
end:
|
||||
ff_cbs_fragment_reset(s->cbc, td);
|
||||
ff_cbs_fragment_reset(td);
|
||||
|
||||
s->cbc->log_ctx = NULL;
|
||||
|
||||
@@ -225,7 +225,7 @@ static void av1_parser_close(AVCodecParserContext *ctx)
|
||||
{
|
||||
AV1ParseContext *s = ctx->priv_data;
|
||||
|
||||
ff_cbs_fragment_free(s->cbc, &s->temporal_unit);
|
||||
ff_cbs_fragment_free(&s->temporal_unit);
|
||||
ff_cbs_close(&s->cbc);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user