[vlc-commits] image: don't overwrite the converter codec
Steve Lhomme
git at videolan.org
Thu Feb 7 13:40:17 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Feb 7 13:06:02 2019 +0100| [e50803e08ff2cb3fdb14704211dac0ca643b0e3f] | committer: Steve Lhomme
image: don't overwrite the converter codec
The chroma shouldn't change between reuse of the converter.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e50803e08ff2cb3fdb14704211dac0ca643b0e3f
---
src/misc/image.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/misc/image.c b/src/misc/image.c
index 7c836b103d..35bdfb6e94 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -257,7 +257,6 @@ static picture_t *ImageRead( image_handler_t *p_image, block_t *p_block,
/* Filters should handle on-the-fly size changes */
p_image->p_converter->fmt_in = p_image->p_dec->fmt_out;
p_image->p_converter->fmt_out = p_image->p_dec->fmt_out;
- p_image->p_converter->fmt_out.i_codec = p_fmt_out->i_chroma;
p_image->p_converter->fmt_out.video = *p_fmt_out;
}
@@ -424,9 +423,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
else
{
/* Filters should handle on-the-fly size changes */
- p_image->p_converter->fmt_in.i_codec = p_fmt_in->i_chroma;
p_image->p_converter->fmt_out.video = *p_fmt_in;
- p_image->p_converter->fmt_out.i_codec =p_image->p_enc->fmt_in.i_codec;
p_image->p_converter->fmt_out.video = p_image->p_enc->fmt_in.video;
}
More information about the vlc-commits
mailing list