Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-03Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().Stefano Sabatini
This fixes warnings about avcodec_get_pix_fmt_name() being deprecated. Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-06-02Remove unused variablesMans Rullgard
2011-05-28cmdutils: remove OPT_FUNC2Stefano Sabatini
Make ff* tools only accept opt_* functions taking two arguments. The distinction between functions with one and two arguments is quite pointless. Simplify parse_options() code. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-05-26ffserver: Fix a null pointer dereference as a result of the ↵Mike Williams
FF_API_MAX_STREAMS cleanup. Fixed another dereference in the RTSP code. Removed a useless variable. Changed an unnecessary looping assignment to a simple assignment suggested by Maksym. Added fixes and tweaks suggested by Maksym Veremeyenko [verem@m1stereo.tv] and Clément B.
2011-05-25ffmpeg: get rid of useless AVInputStream.nb_streams.Anton Khirnov
It's a duplicate of AVFormatContext.nb_streams.
2011-05-25ffmpeg: simplify managing input files and streamsAnton Khirnov
Grow the file and stream list in opt_input_file() instead of creating it all at once in transcode(). This is simpler and will be useful for following commits.
2011-05-25ffmpeg: purge redundant AVInputStream.index.Anton Khirnov
AVStream.index stores the same thing.
2011-05-22ffmpeg: Don't trigger url_interrupt_cb on the first signalMartin Storsjö
Currently, the url_interrupt_cb callback will abort all IO after the first received signal. This makes the output files from e.g. the mov muxer to be unreadable if the transcode is aborted with ctrl+c. After this patch, the first signal cleanly breaks out of the transcoding loop, but won't forcibly abort all IO. After the second signal is received, the url_interrupt_cb callback will abort all IO. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-05-21ffmpeg: get rid of the -vglobal option.Anton Khirnov
It's badly documented and does the same thing as -flags global_header, so it's redundant.
2011-05-19Add support for request_sample_format in ffmpeg and ffplay.Justin Ruggles
2011-05-17ffmpeg: fix -aspect cli optionBaptiste Coudurier
Redesign the way -aspect option is handled. This is done by making ffmpeg read the sample aspect ratio set in the corresponding input stream by default, and overriding it using the value specified by -aspect. If the output display aspect ratio is specified with -aspect, it is set at the end of the filterchain, thus overriding the value set by filters in the filterchain. This implementation is more robust, since does not modify the filterchain description (which was creating potential syntax errors). (Cherry-pick abf8342aa94bdf06bb324f6723a6743dd628d5c6) Another aspect ratio fix try. This leaves the setdar addition at the end (preferred by people). (Cherry-pick e7c7b0d000e81d24327602e04d8fed400dbb7193)
2011-05-17Restructure video filter implementation in ffmpeg.c.Michael Niedermayer
This fixes several bugs like multiple outputs and -aspect mixed with -vf (cherry picked from commit 1762d9ced70ccc46c5d3e5d64e56a48d0fbbd4f7) (cherry picked from commit 5c20c81bfa526b3a269db9c88b0c9007861f0917) (cherry picked from commit a7844c580d83d8466c161a0e3979b3902d0d9100)
2011-05-13ffmpeg: use parse_number_and_die() when it makes senseStefano Sabatini
Prefer parse_number_or_die() over atoi()/atol() parsing for the options: -pass, -top, -vc, and -qscale. Improve input validation. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-13ffmpeg: get rid of the 'q' key schizofreniaAnton Khirnov
SIGINT for quitting should be enough for everybody.
2011-05-12ffmpeg: factorize quality calculationMichael Niedermayer
Calculate quality value once per stream in print_report(). Also fix segfault, as coded_frame can be NULL. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun
Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
2011-05-11ffmpeg: call pre_process_video_frame() only if decoding is neededStefano Sabatini
In output_packet(), move the pre_process_video_frame() call inside the if (ist->decoding_needed) { } block. This way pre_process_video_frame() is not called when stream-copy has been selected. Also simplify. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-11ffmpeg: reformat resample condition code in transcode()Stefano Sabatini
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-11ffmpeg: factorize resampling condition check in do_video_out()Stefano Sabatini
Simplify and improve readability. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-11ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippetStefano Sabatini
Simplify, ease readability. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-11ffmpeg: improve reporting if size/pixel format changesStefano Sabatini
Use av_log() rather than fprintf(stderr, ...), and show information related to the previous size/pixel format configuration. Consistent with the corresponding message issued in case of audio configuration change. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-11ffmpeg: warns the user when the selected pixel format is ignoredStefano Sabatini
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-10ffmpeg: Simplify decode loop condition to not use next_ptsAlexander Strange
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-05-10ffmpeg: remove unused fields AVOutputStream.original_width/heightStefano Sabatini
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-10ffmpeg: remove unused variable padding_src in do_video_out()Stefano Sabatini
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-10ffmpeg: fix negative verbosity.Michael Niedermayer
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-10ffmpeg: rename configure_filters() to configure_video_filters()Stefano Sabatini
Mostly useful for the audio-filters branch, to make more apparent the distinction between configure_audio_filters() and configure_video_filters(). Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-10cmdutils: remove list_fmts(), simplifyStefano Sabatini
The function was only used in opt_sample_fmt() for listing the sample formats. Move list_fmts() functionality directly into opt_sample_fmt(). Also fix the warning: ffmpeg.c: In function ‘opt_audio_sample_fmt’: ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible pointer type cmdutils.h:163: note: expected ‘void (*)(char *, int, int)’ but argument is of type ‘char * (*)(char *, int, enum AVSampleFormat)’ Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-10Add missing CONFIG_AVFILTER check.Takashi Mochizuki
Fix configure --disable-avfilter issue. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-09ffmpeg.c: reset avoptions after each input/output file.Anton Khirnov
This is consistent with how all the other options work.
2011-05-09ffmpeg.c: store per-output stream sws flags.Anton Khirnov
2011-05-08ffmpeg.c: check for interlaced flag in the correct place.Anton Khirnov
In the corresponding codec context, not global options storage.
2011-05-04Replace strncpy() with av_strlcpy().Alex Converse
2011-05-03Make ffmpeg support generic data streamLuca Barbato
The patch is the first step to support -dcodec copy
2011-05-02Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-05-02Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().Stefano Sabatini
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-04-29Remove some disabled printf debug cruft.Diego Biurrun
2011-04-26vsrc_buffer: add sample_aspect_ratio fields to arguments.Michael Niedermayer
This fixes aspect handling in ffmpeg. This is based on a patch by Baptiste. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-04-23Lowercase all ff* program names.Diego Biurrun
2011-04-21error: remove AVERROR_NUMEXPECTEDStefano Sabatini
AVERROR_NUMEXPECTED is used only in the image muxer and demuxer, and has a too much specific meaning, which is better explained through a log message. Thus it can be replaced by AVERROR(EINVAL). This breaks API. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-04-19prefer avio_check() over url_exist()Stefano Sabatini
The problem with url_exist() is that it tries to open a resource in RDONLY mode. If the file is a FIFO and there is already a reading client, the open() call will hang. By using avio_check() with access mode of 0, the second reading process will check if the file exists without attempting to open it, thus avoiding the lock. Fix issue #1663. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-04-19avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini
Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
2011-04-19lavc: remove the FF_API_SET_STRING_OLD cruft.Anton Khirnov
2011-04-19lavf: remove FF_API_MAX_STREAMS cruftAnton Khirnov
2011-04-10Redefine sameqLou Logan
I think the documentation of sameq is causing confusion and misuse of this option. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-04-08lavf: get rid of ffm-specific stuff in avformat.hAnton Khirnov
2011-04-08lavf: rename avf_sdp_create to av_sdp_create.Anton Khirnov
The new name is more consistent with the rest of the API.
2011-04-07avio: avio_ prefix for url_set_interrupt_cb.Anton Khirnov
2011-04-07avio: AVIO_ prefixes for URL_ open flags.Anton Khirnov
2011-04-05Add silence support for AV_SAMPLE_FMT_U8.Alex Converse
Signed-off-by: Anton Khirnov <anton@khirnov.net>