[vlc-commits] demux:image: remove redundant code

Steve Lhomme git at videolan.org
Fri Feb 8 14:00:40 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb  8 09:31:29 2019 +0100| [a4055bc80551ce1ad061121996337e5c04aa557a] | committer: Steve Lhomme

demux:image: remove redundant code

The codec is set a few lines earlier and when modified the value is also set to
the i_chroma value of the video format.

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

 modules/demux/image.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/demux/image.c b/modules/demux/image.c
index 464f8f3eab..049fb399c7 100644
--- a/modules/demux/image.c
+++ b/modules/demux/image.c
@@ -699,7 +699,6 @@ static int Open(vlc_object_t *object)
         free(string);
 
         data = Decode(demux, &fmt, chroma, data);
-        fmt.i_codec = fmt.video.i_chroma;
     }
     fmt.i_id    = var_InheritInteger(demux, "image-id");
     fmt.i_group = var_InheritInteger(demux, "image-group");



More information about the vlc-commits mailing list