mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/libdav1d: export level from the Sequence Header
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
293489d835
commit
0e07b767c8
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,8 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
|||
frame->linesize[2] = p->stride[1];
|
||||
|
||||
c->profile = p->seq_hdr->profile;
|
||||
c->level = ((p->seq_hdr->operating_points[0].major_level - 2) << 2)
|
||||
| p->seq_hdr->operating_points[0].minor_level;
|
||||
frame->format = c->pix_fmt = pix_fmt[p->p.layout][p->seq_hdr->hbd];
|
||||
frame->width = p->p.w;
|
||||
frame->height = p->p.h;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue