[FFmpeg-devel] [PATCH]Remove the option -frame_rate from avfoundation: It has no effect

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Nov 12 09:58:51 CET 2014


Hi!

Related to ticket #4080.

Please review / merge, Carl Eugen
-------------- next part --------------
From 0ea54d698be613465d92a82495001ddabae128b0 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Wed, 12 Nov 2014 09:55:11 +0100
Subject: [PATCH 2/2] lavd/avfoundation: Remove unused -frame_rate option.

---
 libavdevice/avfoundation.m |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index e756225..1207cbf 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -81,7 +81,6 @@ typedef struct
 {
     AVClass*        class;
 
-    float           frame_rate;
     int             frames_captured;
     int             audio_frames_captured;
     int64_t         first_pts;
@@ -823,7 +822,6 @@ static int avf_close(AVFormatContext *s)
 }
 
 static const AVOption options[] = {
-    { "frame_rate", "set frame rate", offsetof(AVFContext, frame_rate), AV_OPT_TYPE_FLOAT, { .dbl = 30.0 }, 0.1, 30.0, AV_OPT_TYPE_VIDEO_RATE, NULL },
     { "list_devices", "list available devices", offsetof(AVFContext, list_devices), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM, "list_devices" },
     { "true", "", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "list_devices" },
     { "false", "", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "list_devices" },
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list