[FFmpeg-cvslog] fftools/ffmpeg_opt: Remove write-only variable

Andreas Rheinhardt git at videolan.org
Sat Oct 2 19:48:22 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct  1 20:42:40 2021 +0200| [d15efbdd5e6ad0961599b3a86651b48a34bb9f50] | committer: Andreas Rheinhardt

fftools/ffmpeg_opt: Remove write-only variable

Unused since 6b35a83214f1bc3fb38c9ea9c2cd3676f28709fa (the removal of
ffserver).

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d15efbdd5e6ad0961599b3a86651b48a34bb9f50
---

 fftools/ffmpeg_opt.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 1d6d29cfc9..c46a9343e1 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -2205,7 +2205,6 @@ static int open_output_file(OptionsContext *o, const char *filename)
     InputStream  *ist;
     AVDictionary *unused_opts = NULL;
     AVDictionaryEntry *e = NULL;
-    int format_flags = 0;
 
     if (o->stop_time != INT64_MAX && o->recording_time != INT64_MAX) {
         o->stop_time = INT64_MAX;
@@ -2250,13 +2249,7 @@ static int open_output_file(OptionsContext *o, const char *filename)
 
     oc->interrupt_callback = int_cb;
 
-    e = av_dict_get(o->g->format_opts, "fflags", NULL, 0);
-    if (e) {
-        const AVOption *o = av_opt_find(oc, "fflags", NULL, 0, 0);
-        av_opt_eval_flags(oc, o, e->value, &format_flags);
-    }
     if (o->bitexact) {
-        format_flags |= AVFMT_FLAG_BITEXACT;
         oc->flags    |= AVFMT_FLAG_BITEXACT;
     }
 



More information about the ffmpeg-cvslog mailing list