Justin Ruggles
31d76ec288
In avcodec_open(), set return code to an error value only when an error occurs
...
instead of unconditionally at the start of the function.
This fixes a bug where a successful call to ff_thread_init() masks errors that
occur after that point in the function. It also makes future bugs like this
less likely since the error code is now set near to the point in the code
where the error is found.
14 years ago
Anton Khirnov
cda7aa9eba
lavc: remove reference to opt.h from Makefile.
...
Fixes make install after 3453a231a6
.
14 years ago
Stefano Sabatini
55815edca0
prefer avio_check() over url_exist()
...
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>
14 years ago
Stefano Sabatini
59d96941f0
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
...
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.
14 years ago
Anton Khirnov
490a022d86
lavu: remove misc disabled cruft
14 years ago
Anton Khirnov
9e5c62c97f
lavu: remove FF_API_OLD_IMAGE_NAMES cruft
14 years ago
Anton Khirnov
516fb5e40c
lavu: remove FF_API_OLD_EVAL_NAMES cruft
14 years ago
Anton Khirnov
3453a231a6
lavc: remove misc disabled cruft.
14 years ago
Anton Khirnov
251cf997cf
lavc: remove the FF_API_INOFFICIAL cruft.
14 years ago
Anton Khirnov
41d0eb1c81
lavc: remove the FF_API_SET_STRING_OLD cruft.
14 years ago
Anton Khirnov
01a4259b8d
lavc: remove the FF_API_USE_LPC cruft.
14 years ago
Anton Khirnov
db4d3a7421
lavc: remove the FF_API_SUBTITLE_OLD cruft.
14 years ago
Anton Khirnov
e89e5afdd0
lavc: remove the FF_API_VIDEO_OLD cruft.
14 years ago
Anton Khirnov
9b4f1cdb6a
lavc: remove the FF_API_AUDIO_OLD cruft.
14 years ago
Anton Khirnov
20d33ee8b1
lavc: remove the FF_API_OPT_SHOW cruft.
14 years ago
Anton Khirnov
42420e7b94
lavc: remove the FF_API_MM_FLAGS cruft.
14 years ago
Anton Khirnov
32b80696e0
lavf: remove misc disabled cruft.
14 years ago
Anton Khirnov
df56d58339
lavf: remove FF_API_INDEX_BUILT cruft
14 years ago
Anton Khirnov
7f804085f1
lavf: remove FF_API_URL_CLASS cruft.
14 years ago
Anton Khirnov
5763e63913
lavf: remove FF_API_SYMVER cruft
14 years ago
Anton Khirnov
b4c5acabb9
lavf: remove FF_API_FIRST_FORMAT cruft
14 years ago
Anton Khirnov
583f6c67b6
lavf: remove FF_API_PARAMETERS_CODEC_ID cruft
14 years ago
Anton Khirnov
fc2d3a19c5
lavf: remove FF_API_LAVF_UNUSED cruft
14 years ago
Anton Khirnov
58d5ff0abf
lavf: remove FF_API_PARSE_FRAME_PARAM cruft
14 years ago
Anton Khirnov
4df001d77f
lavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruft
14 years ago
Anton Khirnov
5048e36c99
lavf: remove FF_API_URL_SPLIT cruft
14 years ago
Anton Khirnov
c4efa7c229
lavf: remove FF_API_UDP_GET_FILE cruft
14 years ago
Anton Khirnov
61573bf1ba
lavf: remove FF_API_GUESS_FORMAT cruft
14 years ago
Anton Khirnov
dcd4a7b62f
lavf: remove FF_API_REGISTER_PROTOCOL cruft
14 years ago
Anton Khirnov
468644f6c1
lavf: remove FF_API_URL_RESETBUF cruft
14 years ago
Anton Khirnov
575c18da1b
lavf: remove FF_API_OLD_METADATA cruft
14 years ago
Anton Khirnov
761ad42968
lavf: remove FF_API_MAX_STREAMS cruft
14 years ago
Kostya
aad2f2f477
document introduction of side data in APIchanges
...
this should've been written earlier, sorry
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Diego Biurrun
151cd4f982
pcm: Add const to cast in ENCODE macro.
...
This fixes a lot of warnings of the sort:
libavcodec/pcm.c:105: warning: cast discards qualifiers from pointer target type
14 years ago
Nicolas George
e61b83d29e
Ogg: add support for Xiph's CELT (Opus) codec.
...
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
14 years ago
Stefano Sabatini
484a330890
pad: make the filter parametric
...
Address trac issue #61 .
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Peter Belkner
39e69d0b88
32bit libmp3lame support.
14 years ago
Peter Belkner
22fa406f38
Check avcodec_alloc_frame() failure.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
c438c90756
ffmpeg: reformat resample condition code in transcode()
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
0f230c53df
ffmpeg: factorize resampling condition check in do_video_out()
...
Simplify and improve readability.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
6a46aab49b
ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippet
...
Simplify, ease readability.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
dfc6f5ae90
ffmpeg: improve reporting if size/pixel format changes
...
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>
14 years ago
Stefano Sabatini
58bc9ac5cb
ffmpeg: remove unused fields AVOutputStream.original_width/height
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
b0b83973d1
ffmpeg: remove unused variable padding_src in do_video_out()
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Carl Eugen Hoyos
133208ffb3
Be more verbose when printing the probe result.
14 years ago
Gavin Kinsey
25347c880f
Fix compilation.for iOS ARMv7.
14 years ago
Carl Eugen Hoyos
9b53bb8b3b
Only ask once in the code for a TrueHD sample with strange channel layout.
14 years ago
Carl Eugen Hoyos
d3f126df4b
Also set the MLP/TrueHD channel layout in the decoder.
...
Applications might not use the parser,
14 years ago
Carl Eugen Hoyos
280a789fe2
Make MLP/TrueHD channel layout functions visible to the decoder.
14 years ago
Michael Niedermayer
a3040715e1
Merge commit 'f0a41afd8a37ebe972436fabfa3d289178bbd83b'
...
* commit 'f0a41afd8a37ebe972436fabfa3d289178bbd83b':
Not pulled: Replace mplayerhq.hu URLs by libav.org.
asfdec: Remove dead code from asf_read_close().
ptx: Use av_log_ask_for_sample() where appropriate.
Conflicts:
libavcodec/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago