[vlc-commits] decoder: thumbnailer: fix the fmt_out i_chroma

Steve Lhomme git at videolan.org
Wed Jul 10 11:25:08 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  9 08:36:57 2019 +0200| [b7b8cc76c1a1e0f0416e940f3c2727e8e27b3ea8] | committer: Steve Lhomme

decoder: thumbnailer: fix the fmt_out i_chroma

Otherwise no decoding picture can be allocated with a 0 chroma.

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

 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 77cae4a419..782dc0a422 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1102,7 +1102,7 @@ static void DecoderQueueVideo( decoder_t *p_dec, picture_t *p_pic )
 
 static int thumbnailer_update_format( decoder_t *p_dec )
 {
-    VLC_UNUSED(p_dec);
+    p_dec->fmt_out.video.i_chroma = p_dec->fmt_out.i_codec;
     return 0;
 }
 



More information about the vlc-commits mailing list