]> git.sesse.net Git - mlt/commitdiff
Revert part of c48ed7 that caused performance regression.
authorDan Dennedy <dan@dennedy.org>
Thu, 15 Nov 2012 03:03:31 +0000 (19:03 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 15 Nov 2012 03:03:31 +0000 (19:03 -0800)
Videos with full color range like yuvj420p were converted unnecessarily
to RGB and back to YUV. If a video does not indicate is has full color
and you want to override it, then use set.force_full_luma=1.

src/modules/avformat/producer_avformat.c

index 1d21431921997b7d0694f36ff4080d5d05e8a4c5..8d726db7e3cafd0558ae5e28b925b8b6e79ee975 100644 (file)
@@ -1988,7 +1988,7 @@ static int video_codec_init( producer_avformat self, int index, mlt_properties p
 #if LIBAVCODEC_VERSION_INT >= ((52<<16)+(72<<8)+2)
                mlt_log_debug( MLT_PRODUCER_SERVICE(self->parent), "color_range %d\n", codec_context->color_range );
                if ( codec_context->color_range == AVCOL_RANGE_JPEG )
-                       mlt_properties_set_int( properties, "set.force_full_luma", 1 );
+                       self->full_luma = 1;
 #endif
                if ( mlt_properties_get( properties, "set.force_full_luma" ) )
                        self->full_luma = mlt_properties_get_int( properties, "set.force_full_luma" );