Commit 378065f0 authored by James Almer's avatar James Almer

avcodec/av1_parser: export stream dimensions in avctx

This is required to demux annexb samples when a decoder isn't available.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 13ed2435
......@@ -23,6 +23,7 @@
#include "av1_parse.h"
#include "cbs.h"
#include "cbs_av1.h"
#include "internal.h"
#include "parser.h"
typedef struct AV1ParseContext {
......@@ -155,6 +156,12 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
break;
}
av_assert2(ctx->format != AV_PIX_FMT_NONE);
if (ctx->width != avctx->width || ctx->height != avctx->height) {
ret = ff_set_dimensions(avctx, ctx->width, ctx->height);
if (ret < 0)
goto end;
}
}
if (avctx->framerate.num)
......
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