[FFmpeg-devel] [PATCH] ffmpeg: remove redundant check in opt_output_file()

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Apr 11 01:06:41 CEST 2011


Remove check filename in case of an image number is expected, this is
unnecessary since the same control is done in the image2
muxer.

Alternatively the check should be moved to the muxer write_header().

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala at poste.it>
---
 ffmpeg.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 119a6e3..a9241d1 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3858,14 +3858,6 @@ static void opt_output_file(const char *filename)
 
     output_files[nb_output_files++] = oc;
 
-    /* check filename in case of an image number is expected */
-    if (oc->oformat->flags & AVFMT_NEEDNUMBER) {
-        if (!av_filename_number_test(oc->filename)) {
-            print_error(oc->filename, AVERROR(EINVAL));
-            ffmpeg_exit(1);
-        }
-    }
-
     if (!(oc->oformat->flags & AVFMT_NOFILE)) {
         /* test if it already exists to avoid loosing precious files */
         if (!file_overwrite &&
-- 
1.7.2.3



More information about the ffmpeg-devel mailing list