- FFVideoConvert() { convert_ctx = 0; }
- ~FFVideoConvert() { if( convert_ctx ) sws_freeContext(convert_ctx); }
+ FFVideoConvert() { convert_ctx = 0; sw_frame = 0; }
+ ~FFVideoConvert() {
+ if( convert_ctx ) sws_freeContext(convert_ctx);
+ if( sw_frame ) av_frame_free(&sw_frame);
+ }