Improve seek performance with dnxhd and huffyuv codecs.
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 5 May 2009 06:20:22 +0000 (06:20 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 5 May 2009 06:20:22 +0000 (06:20 +0000)
Signed-off-by: Dan Dennedy <dan@dennedy.org>

git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1419 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/producer_avformat.c

index ae4f7c2..2474f9a 100644 (file)
@@ -740,9 +740,11 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
        int must_decode = 1;
 
        // Temporary hack to improve intra frame only
-       must_decode = strcmp( codec_context->codec->name, "mjpeg" ) &&
-                                 strcmp( codec_context->codec->name, "rawvideo" ) &&
-                                 strcmp( codec_context->codec->name, "dvvideo" );
+       must_decode = strcmp( codec_context->codec->name, "dnxhd" ) &&
+                                 strcmp( codec_context->codec->name, "dvvideo" ) &&
+                                 strcmp( codec_context->codec->name, "huffyuv" ) &&
+                                 strcmp( codec_context->codec->name, "mjpeg" ) &&
+                                 strcmp( codec_context->codec->name, "rawvideo" );
 
        // Seek if necessary
        if ( position != expected )