View | Details | Raw Unified | Return to bug 160315
Collapse All | Expand All

(-)b/src/modules/avformat/consumer_avformat.c (-1 / +1 lines)
Lines 851-857 static AVStream *add_video_stream( mlt_consumer consumer, AVFormatContext *oc, A Link Here
851
                        fclose( f );
851
                        fclose( f );
852
                        logbuffer[size] = '\0';
852
                        logbuffer[size] = '\0';
853
                        c->stats_in = logbuffer;
853
                        c->stats_in = logbuffer;
854
 mlt_properties_set_data( properties, "_logbuffer", logbuffer, 0, ( mlt_destructor )av_free, NULL );
855
                    }
854
                    }
856
                }
855
                }
857
            }
856
            }
Lines 951-956 void close_video(AVFormatContext *oc, AVStream *st) Link Here
951
    if ( st && st->codec )
950
    if ( st && st->codec )
952
    {
951
    {
953
        avformat_lock();
952
        avformat_lock();
953
 av_freep( &st->codec->stats_in );
954
        avcodec_close(st->codec);
954
        avcodec_close(st->codec);
955
        avformat_unlock();
955
        avformat_unlock();
956
    }
956
    }

Return to bug 160315