]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/producer_avformat.c
Let loader producer use new GLSL normalizing filters (opengl branch).
[mlt] / src / modules / avformat / producer_avformat.c
index 89643505c02e6ff93ca1eb977e065e88c02555d5..8f7094aba6eff44337b62e04b55c3b08afb6ac8a 100644 (file)
@@ -1426,6 +1426,10 @@ static int allocate_buffer( mlt_frame frame, AVCodecContext *codec_context, uint
 
        if ( codec_context->width == 0 || codec_context->height == 0 )
                return size;
+
+       if ( *format == mlt_image_glsl )
+               *format = pick_pix_format( codec_context->pix_fmt );
+
        *width = codec_context->width;
        *height = codec_context->height;
        size = mlt_image_format_size( *format, *width, *height, NULL );