[vlc-commits] [Git][videolan/vlc][3.0.x] dav1d: always use buffers with the max resolution
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Apr 20 12:32:32 UTC 2023
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
0808ae2a by Steve Lhomme at 2023-04-17T13:48:11+02:00
dav1d: always use buffers with the max resolution
When the super resolution of AV1 is used, some frames may be encoded smaller
than the max resolution, but they are actually decoded at the max resolution
by dav1d. So we need to provide a buffer large enough.
Ref. #28002
- - - - -
1 changed file:
- modules/codec/dav1d.c
Changes:
=====================================
modules/codec/dav1d.c
=====================================
@@ -129,10 +129,10 @@ static int NewPicture(Dav1dPicture *img, void *cookie)
video_format_t *v = &dec->fmt_out.video;
- v->i_visible_width = img->p.w;
- v->i_visible_height = img->p.h;
- v->i_width = (img->p.w + 0x7F) & ~0x7F;
- v->i_height = (img->p.h + 0x7F) & ~0x7F;
+ v->i_visible_width = img->seq_hdr->max_width;
+ v->i_visible_height = img->seq_hdr->max_height;
+ v->i_width = (img->seq_hdr->max_width + 0x7F) & ~0x7F;
+ v->i_height = (img->seq_hdr->max_height + 0x7F) & ~0x7F;
if( !v->i_sar_num || !v->i_sar_den )
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0808ae2ac54a6605099fbf95a362cc0d7ccbd9f8
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0808ae2ac54a6605099fbf95a362cc0d7ccbd9f8
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list