[vlc-commits] avcodec: video: use the video context to signal small format changes

Steve Lhomme git at videolan.org
Fri Nov 13 16:52:30 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Nov  6 10:28:25 2020 +0100| [253cd9881e883f859b2f0a6fdacf5c37a9600ab2] | committer: Steve Lhomme

avcodec: video: use the video context to signal small format changes

Changes include stereoscopic mode changes, HDR metadata changes.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=253cd9881e883f859b2f0a6fdacf5c37a9600ab2
---

 modules/codec/avcodec/video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index ecde33199b..13b00e3f26 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -860,7 +860,7 @@ static int DecodeSidedata( decoder_t *p_dec, const AVFrame *frame, picture_t *p_
     else
         p_pic->format.multiview_mode = p_dec->fmt_out.video.multiview_mode;
 
-    if (format_changed && decoder_UpdateVideoFormat( p_dec ))
+    if (format_changed && decoder_UpdateVideoOutput( p_dec, p_sys->vctx_out ))
         return -1;
 
     const AVFrameSideData *p_avcc = av_frame_get_side_data( frame, AV_FRAME_DATA_A53_CC );



More information about the vlc-commits mailing list