]> git.sesse.net Git - mlt/commitdiff
producer_avformat.c: bugfix segfault up the call stack when no image could be decoded...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 25 Jun 2008 04:44:49 +0000 (04:44 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 25 Jun 2008 04:44:49 +0000 (04:44 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1149 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/producer_avformat.c

index f242b861ce4b55ec3ac35e35df54683592b0ad07..5d4a55fac8f565ed8bdd04eff3badf87a797e0f9 100644 (file)
@@ -652,6 +652,8 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
                                mlt_properties_set_int( properties, "_got_picture", 1 );
                        }
                }
+               if ( !got_picture )
+                       mlt_frame_get_image( frame, buffer, format, width, height, writable );
        }
 
        // Very untidy - for rawvideo, the packet contains the frame, hence the free packet