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

(-)channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c (-4 / +4 lines)
Lines 387-393 Link Here
387
		av_picture_copy((AVPicture*) frame, (AVPicture*) mdecoder->frame,
387
		av_picture_copy((AVPicture*) frame, (AVPicture*) mdecoder->frame,
388
		                mdecoder->codec_context->pix_fmt,
388
		                mdecoder->codec_context->pix_fmt,
389
		                mdecoder->codec_context->width, mdecoder->codec_context->height);
389
		                mdecoder->codec_context->width, mdecoder->codec_context->height);
390
		av_free(frame);
390
		av_frame_free(&frame);
391
	}
391
	}
392
392
393
	return ret;
393
	return ret;
Lines 485-491 Link Here
485
				frame_size = 0;
485
				frame_size = 0;
486
			}
486
			}
487
487
488
			av_free(decoded_frame);
488
			av_frame_free(&decoded_frame);
489
		}
489
		}
490
#endif
490
#endif
491
491
Lines 593-599 Link Here
593
	TSMFFFmpegDecoder* mdecoder = (TSMFFFmpegDecoder*) decoder;
593
	TSMFFFmpegDecoder* mdecoder = (TSMFFFmpegDecoder*) decoder;
594
594
595
	if (mdecoder->frame)
595
	if (mdecoder->frame)
596
		av_free(mdecoder->frame);
596
		av_frame_free(&mdecoder->frame);
597
597
598
	free(mdecoder->decoded_data);
598
	free(mdecoder->decoded_data);
599
599
Lines 603-609 Link Here
603
			avcodec_close(mdecoder->codec_context);
603
			avcodec_close(mdecoder->codec_context);
604
604
605
		free(mdecoder->codec_context->extradata);
605
		free(mdecoder->codec_context->extradata);
606
		av_free(mdecoder->codec_context);
606
		av_frame_free(&mdecoder->codec_context);
607
	}
607
	}
608
608
609
	free(decoder);
609
	free(decoder);

Return to bug 226651