Diego Biurrun
d4b63054d9
cosmetics: Drop unnecessary parentheses around return values.
13 years ago
Stefano Sabatini
1c9e340d35
lavfi: add avfilter_copy_frame_props()
...
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
13 years ago
Stefano Sabatini
b58dbb5b03
lavc: add a sample_aspect_ratio field to AVFrame
...
The sample aspect ratio is a per-frame property, so it makes sense to
define it in AVFrame rather than in the codec/stream context.
Simplify application-level sample aspect ratio information extraction,
and allow further simplifications.
13 years ago
Michael Niedermayer
c9aa4cfdb1
avplay: clear pkt_temp when pkt is freed.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Mans Rullgard
8400b126ac
avcodec: deprecate AVFrame.age
...
This was intended as an optimisation for skipped blocks in MPEG2
P-frames and never used elsewhere. Removing this "optimisation"
speeds up MPEG2 decoding by 1-2% (ARM Cortex-A9).
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
cd3716b9aa
Replace all uses of av_close_input_file() with avformat_close_input().
13 years ago
Justin Ruggles
b11ce85664
avplay: don't request a stereo downmix
...
Multi-channel output works just fine for me with SDL 1.2.14.
13 years ago
Justin Ruggles
f199f38573
avplay: use avcodec_decode_audio4()
13 years ago
Justin Ruggles
e2a2c49fcd
avplay: use a separate buffer for playing silence
13 years ago
Martin Storsjö
40972f7c54
avplay: Set the new interrupt callback
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Justin Ruggles
f9324d5add
avplay: reset rdft when closing stream.
...
this fixes a crash when cycling audio streams if the spectrograph is
displayed.
13 years ago
Martin Storsjö
776f2bb91a
Call avformat_network_init/deinit in the programs
...
Calling the init function will become mandatory at some later
point. By calling it, more heavy network init (such as SSL/TLS
library init) can be done once at startup, instead of implicitly
when used (which could lead to it being done a number of times).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
20566eb0f0
Replace outdated references to ffmpeg tool with avconv.
13 years ago
Marton Balint
fec5777ed7
avplay: fix fullscreen behaviour with SDL 1.2.14 on Mac OS X
...
The blue channel went missing when toggling fullscreen on Mac OS X.
13 years ago
Luca Barbato
ec5e521298
macosx: use the default surface on newer sdl
...
SDL 1.2.14 works fine with default colorspace on macosx and seems
to have some issues with 24bit surfaces and resize in addition.
13 years ago
Justin Ruggles
c74f1f47b2
avplay: free the active audio packet at exit.
...
fixes a memleak
13 years ago
Justin Ruggles
cb2c4de3a1
avplay: free rdft data used for spectrogram analysis.
...
fixes a memleak
13 years ago
Anton Khirnov
7a6cd9957d
cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()
13 years ago
Anton Khirnov
182cbe433a
avtools: parse loglevel before all the other options.
...
This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.
13 years ago
Justin Ruggles
59df4b82a5
avplay: flush audio decoder with empty packets at EOF if the decoder has
...
CODEC_CAP_DELAY set.
13 years ago
Anton Khirnov
7cc8d6385a
cmdutils: add support for caller-provided option context.
...
This is the first step to removing the globals plague from avtools.
14 years ago
Anton Khirnov
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
...
Allows cmdutils to call each tool's own cleanup function.
14 years ago
Anton Khirnov
20c21f8b75
cmdutils: get rid of dummy contexts for examining AVOptions.
...
Replace it with newly introduced libavutil API.
14 years ago
Kostya
428c59d911
avtools: reinitialise filter chain when input video stream changes dimensions
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
d4863fc1a8
cmdutils: allow precisely specifying a stream for AVOptions.
14 years ago
Anton Khirnov
266463daff
Rename ffplay to avplay.
14 years ago
Stefano Sabatini
8ec19f84e1
cmdutils: add codec_opts parameter to setup_find_stream_info_opts()
...
Avoid brittle and obfuscating reference to a global.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
0a858048af
ffplay: warn that -pix_fmt is no longer working, suggest alternative
...
Also remove now unused variable.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
a4e540c4f5
ffplay: warn that -s is no longer working, suggest alternative
...
Also remove now unused variables.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
3009f521f3
ffplay: use new avcodec_open2 and avformat_find_stream_info API.
14 years ago
Diego Biurrun
71a1d1116f
Replace some gotos that lead to single return statements by direct return.
14 years ago
Diego Biurrun
987041318f
ffplay: skip return value of avcodec_decode_video2 / avcodec_decode_subtitle2
...
This fixes some warnings about unused-but-set variables.
14 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
f3876ea485
Move some variable declarations below the proper #ifdefs.
...
This avoids warnings about set-but-unused variables.
14 years ago
Diego Biurrun
c713620b4c
ffplay: Remove unused-but-set channels variable from update_sample_display().
14 years ago
Justin Ruggles
e6c52cee54
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
...
av_get_bits_per_sample_fmt() is deprecated.
14 years ago
Anton Khirnov
d0e142bb68
ffplay: use new avformat_open_* API.
14 years ago
Diego Biurrun
8543f0f923
ffplay: Fix non-compiling debug printf and replace it by av_dlog.
14 years ago
Diego Biurrun
1f6b9cc31d
Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.
14 years ago
Stefano Sabatini
26513856d6
cmdutils: remove OPT_FUNC2
...
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>
14 years ago
Diego Biurrun
6c6c976fa9
ffplay: Remove disabled code.
14 years ago
Justin Ruggles
bc778a0cea
Add support for request_sample_format in ffmpeg and ffplay.
14 years ago
Stefano Sabatini
3a7c977417
ffplay: remove audio_write_get_buf_size() forward declaration
...
Move up the definition of audio_write_get_buf_size(), so that it is
defined before it is used. Simplify.
(cherry picked from commit 8776f3d22e
)
14 years ago
Diego Biurrun
046f081b46
configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.
...
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.
14 years ago
Benjamin Larsson
91199cfe55
ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i "file" and ffplay -i "file".
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Oskar Arvidsson
6e3ef511d7
Add the notion of pixel size in h264 related functions.
...
In high bit depth the pixels will not be stored in uint8_t like in the
normal case, but in uint16_t. The pixel size is thus 1 in normal bit
depth and 2 in high bit depth.
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Stefano Sabatini
6209669de4
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Diego Biurrun
045dd4b928
Replace some commented-out debug printf() / av_log() messages with av_dlog().
14 years ago
Diego Biurrun
89b503b55f
Lowercase all ff* program names.
14 years ago
Anton Khirnov
41d0eb1c81
lavc: remove the FF_API_SET_STRING_OLD cruft.
14 years ago