diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-06-05 13:18:17 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-06-05 15:01:36 +0200 |
commit | 367732832faaf1bac4ece37cf7fef8c911e16312 (patch) | |
tree | 3e3cf5d1809f898f9f25dca63b2e2f8117424bde /libavdevice/x11grab.c | |
parent | b39b06233dfd69b941a32f29171dfb63abb23c06 (diff) | |
download | ffmpeg-367732832faaf1bac4ece37cf7fef8c911e16312.tar.gz |
lavf,lavc: free avoptions in a generic way.
It's simpler and less error-prone.
Fixes some memleaks along the way.
Diffstat (limited to 'libavdevice/x11grab.c')
-rw-r--r-- | libavdevice/x11grab.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index b1ca6e699a..c6dc673520 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -258,8 +258,6 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) st->codec->bit_rate = x11grab->frame_size * 1/av_q2d(x11grab->time_base) * 8; out: - av_freep(&x11grab->video_size); - av_freep(&x11grab->framerate); return ret; } |