From 367732832faaf1bac4ece37cf7fef8c911e16312 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 5 Jun 2011 13:18:17 +0200 Subject: lavf,lavc: free avoptions in a generic way. It's simpler and less error-prone. Fixes some memleaks along the way. --- libavdevice/v4l2.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavdevice/v4l2.c') diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 98ff82ec0d..839d290b63 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -684,10 +684,6 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) st->codec->bit_rate = s->frame_size * 1/av_q2d(st->codec->time_base) * 8; out: - av_freep(&s->video_size); - av_freep(&s->pixel_format); - av_freep(&s->standard); - av_freep(&s->framerate); return res; } -- cgit v1.2.3