OSDN Git Service

coroid/ffmpeg_saccubus.git
13 years agoffplay: remove reference to unused QETimer symbol
Stefano Sabatini [Fri, 22 Apr 2011 09:26:44 +0000 (11:26 +0200)]
ffplay: remove reference to unused QETimer symbol

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoffplay: rename stream_pause() to stream_toggle_pause()
Stefano Sabatini [Fri, 22 Apr 2011 00:19:48 +0000 (02:19 +0200)]
ffplay: rename stream_pause() to stream_toggle_pause()

The new name is less misleading, since the function will resume the
stream if it is currently paused.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoflicvideo: fix crash on flic files with invalid frame size
Stefano Sabatini [Fri, 22 Apr 2011 22:08:28 +0000 (00:08 +0200)]
flicvideo: fix crash on flic files with invalid frame size

Add a check in flic_decode_frame_8BPP(), in case chunk_size is >
frame_size issue a warning and resize chunk_size to frame_size, in
order to avoid out-of-buffer reads.

Fix roundup issue #2520, trac issue #69.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoflicvideo: increase error level and fix error message in CHECK_PIXEL_PTR()
Stefano Sabatini [Fri, 22 Apr 2011 22:07:15 +0000 (00:07 +0200)]
flicvideo: increase error level and fix error message in CHECK_PIXEL_PTR()

Also return AVERROR_INVALIDDATA rather than -1.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoaac: add math.h needed for log2f()
Michael Niedermayer [Sat, 23 Apr 2011 08:44:21 +0000 (10:44 +0200)]
aac: add math.h needed for log2f()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago10l: Add misssing CR/LF.
Carl Eugen Hoyos [Sat, 23 Apr 2011 08:41:44 +0000 (10:41 +0200)]
10l: Add misssing CR/LF.

13 years agoSupport channel layout when demuxing aif files.
Carl Eugen Hoyos [Sat, 23 Apr 2011 08:31:03 +0000 (10:31 +0200)]
Support channel layout when demuxing aif files.

13 years agoSupport channel layout when demuxing caf files.
Carl Eugen Hoyos [Sat, 23 Apr 2011 08:30:18 +0000 (10:30 +0200)]
Support channel layout when demuxing caf files.

13 years agoExtend unknown CAF chunk warning message: Print size.
Carl Eugen Hoyos [Sat, 23 Apr 2011 08:19:21 +0000 (10:19 +0200)]
Extend unknown CAF chunk warning message: Print size.

13 years agoFix compilation with libcelt on Apple OS X.
Carl Eugen Hoyos [Sat, 23 Apr 2011 08:09:11 +0000 (10:09 +0200)]
Fix compilation with libcelt on Apple OS X.

Fixes ticket #97.

13 years agoFix compilation after version bump.
Carl Eugen Hoyos [Sat, 23 Apr 2011 08:06:39 +0000 (10:06 +0200)]
Fix compilation after version bump.

13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Fri, 22 Apr 2011 23:09:43 +0000 (01:09 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  Use av_log_ask_for_sample() to request samples from users.
  Make av_log_ask_for_sample() accept a variable number of arguments.
  vqavideo: We no longer need to ask for version 1 samples.
  aacdec: indentation cosmetics

Conflicts:
libavcodec/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoUse av_log_ask_for_sample() to request samples from users.
Diego Biurrun [Fri, 22 Apr 2011 17:41:59 +0000 (19:41 +0200)]
Use av_log_ask_for_sample() to request samples from users.

13 years agoMake av_log_ask_for_sample() accept a variable number of arguments.
Diego Biurrun [Fri, 22 Apr 2011 17:30:25 +0000 (19:30 +0200)]
Make av_log_ask_for_sample() accept a variable number of arguments.

13 years agoRm duplicated define for OPT_STR.
Robert Leatherwood [Fri, 22 Apr 2011 18:10:26 +0000 (20:10 +0200)]
Rm duplicated define for OPT_STR.

13 years agovqavideo: We no longer need to ask for version 1 samples.
Diego Biurrun [Fri, 22 Apr 2011 17:46:54 +0000 (19:46 +0200)]
vqavideo: We no longer need to ask for version 1 samples.

13 years agoFLV muxing is supported.
Carl Eugen Hoyos [Fri, 22 Apr 2011 17:24:17 +0000 (19:24 +0200)]
FLV muxing is supported.

13 years agoCosmetics: Rename variable daemon as run_as_daemon.
Carl Eugen Hoyos [Fri, 22 Apr 2011 16:49:44 +0000 (18:49 +0200)]
Cosmetics: Rename variable daemon as run_as_daemon.

daemon() is defined in unistd.h for BSD and Cygwin.

13 years agoSupport Canopus SD50 with fourcc "CDV5".
Carl Eugen Hoyos [Fri, 22 Apr 2011 16:45:47 +0000 (18:45 +0200)]
Support Canopus SD50 with fourcc "CDV5".

Fixes ticket #93.

13 years agorv10: set flags, Fixes Ticket90
Michael Niedermayer [Fri, 22 Apr 2011 14:00:00 +0000 (16:00 +0200)]
rv10: set flags, Fixes Ticket90
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoaacdec: indentation cosmetics
Young Han Lee [Fri, 22 Apr 2011 12:39:56 +0000 (21:39 +0900)]
aacdec: indentation cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoerror: remove symbols which were deprecated before the big bump
Stefano Sabatini [Thu, 21 Apr 2011 09:48:44 +0000 (11:48 +0200)]
error: remove symbols which were deprecated before the big bump

The removal was not applied when merging the Libav patches, because
there was still code referencing the symbols.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agomatroskaenc: replace AVERROR_NOTSUPP with AVERROR(EINVAL)
Stefano Sabatini [Thu, 21 Apr 2011 09:24:34 +0000 (11:24 +0200)]
matroskaenc: replace AVERROR_NOTSUPP with AVERROR(EINVAL)

AVERROR_NOTSUPP has been dropped with the major bump. Since the
signalled error denotes a configuration problem, AVERROR(EINVAL) looks
an adequate replacement.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Fri, 22 Apr 2011 01:50:23 +0000 (03:50 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.
  Introduce slice threads flag.
  FATE: allow forcing thread-type when doing threaded fate runs.
  Use av_log_ask_for_sample() where appropriate.
  error: sort, pack, and align error code and string definitions
  The stabilization period after version bumps should be one month, not one week.
  applehttp: Expose the stream bitrate via metadata
  doc: Add some initial docs on the applehttp demuxer
  Provide a fallback version of the libm function trunc
  libavdevice: Define _XOPEN_SOURCE for usleep
  lavc: provide deprecated avcodec_thread_init until next major version
  lavc: provide the opt.h header until the next bump
  error: change AVERROR_EOF value
  error: remove AVERROR_NUMEXPECTED
  error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c

Conflicts:
libavcodec/h264.c
libavutil/error.c
libavutil/error.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoAPIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.
Ronald S. Bultje [Thu, 21 Apr 2011 23:50:19 +0000 (19:50 -0400)]
APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.

13 years agoIntroduce slice threads flag.
Ronald S. Bultje [Wed, 20 Apr 2011 18:14:42 +0000 (14:14 -0400)]
Introduce slice threads flag.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoFATE: allow forcing thread-type when doing threaded fate runs.
Ronald S. Bultje [Wed, 20 Apr 2011 17:12:38 +0000 (13:12 -0400)]
FATE: allow forcing thread-type when doing threaded fate runs.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoAMV: Fix possibly exploitable crash.
Michael Niedermayer [Thu, 21 Apr 2011 20:04:21 +0000 (22:04 +0200)]
AMV: Fix possibly exploitable crash.
Reported-at: Thu, 21 Apr 2011 14:38:25 +0000
Reported-by: Dominic Chell <Dominic.Chell@ngssecure.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agomjpeg: Detect overreads in mjpeg_decode_scan() and error out.
Michael Niedermayer [Thu, 21 Apr 2011 20:03:24 +0000 (22:03 +0200)]
mjpeg: Detect overreads in mjpeg_decode_scan() and error out.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoUse av_log_ask_for_sample() where appropriate.
Diego Biurrun [Thu, 21 Apr 2011 17:38:49 +0000 (19:38 +0200)]
Use av_log_ask_for_sample() where appropriate.

13 years agomp: remove unused variable outlink in end_frame
Stefano Sabatini [Thu, 21 Apr 2011 16:44:47 +0000 (18:44 +0200)]
mp: remove unused variable outlink in end_frame

Fix warning:
vf_mp.c: In function ‘end_frame’:
vf_mp.c:870: warning: unused variable ‘outlink’

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agomp: remove use of deprecated old eval API
Stefano Sabatini [Thu, 21 Apr 2011 12:25:25 +0000 (14:25 +0200)]
mp: remove use of deprecated old eval API

The old API was deprecated and will be possibly removed, fix warnings
in libavfilter/libmpcodecs/vf_geq.c and libavfilter/libmpcodecs/vf_qp.c.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoIn libx264 wrapper, detect default settings and use medium profile to avoid failure.
Baptiste Coudurier [Thu, 21 Apr 2011 16:01:31 +0000 (09:01 -0700)]
In libx264 wrapper, detect default settings and use medium profile to avoid failure.

13 years agoerror: sort, pack, and align error code and string definitions
Stefano Sabatini [Thu, 21 Apr 2011 11:36:12 +0000 (13:36 +0200)]
error: sort, pack, and align error code and string definitions

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoThe stabilization period after version bumps should be one month, not one week.
Diego Biurrun [Thu, 21 Apr 2011 13:56:55 +0000 (15:56 +0200)]
The stabilization period after version bumps should be one month, not one week.

13 years agoapplehttp: Expose the stream bitrate via metadata
Martin Storsjö [Wed, 20 Apr 2011 07:10:10 +0000 (10:10 +0300)]
applehttp: Expose the stream bitrate via metadata

This helps callers to intelligently switch between bitrate
variants.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agodoc: Add some initial docs on the applehttp demuxer
Martin Storsjö [Wed, 20 Apr 2011 20:04:31 +0000 (23:04 +0300)]
doc: Add some initial docs on the applehttp demuxer

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoProvide a fallback version of the libm function trunc
Martin Storsjö [Thu, 21 Apr 2011 11:02:38 +0000 (13:02 +0200)]
Provide a fallback version of the libm function trunc

This fixes compilation on DOS.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibavdevice: Define _XOPEN_SOURCE for usleep
Martin Storsjö [Thu, 21 Apr 2011 10:49:21 +0000 (13:49 +0300)]
libavdevice: Define _XOPEN_SOURCE for usleep

This hopefully fixes build failures on Dragonfly BSD.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoimg2: return AVERROR(EINVAL) in case of invalid filename pattern
Stefano Sabatini [Sun, 10 Apr 2011 22:39:59 +0000 (00:39 +0200)]
img2: return AVERROR(EINVAL) in case of invalid filename pattern

In write_packet(), return AVERROR(EINVAL) rather than AVERROR(EIO) if
the provided output filename pattern is not valid. Indeed this has to
be considered a configuration error rather than an I/O error.

Allow a less confusing error report.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agoffmpeg: call pre_process_video_frame() only if decoding is needed
Stefano Sabatini [Wed, 20 Apr 2011 11:13:09 +0000 (13:13 +0200)]
ffmpeg: call pre_process_video_frame() only if decoding is needed

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>
13 years agoocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX
Stefano Sabatini [Thu, 21 Apr 2011 08:31:48 +0000 (10:31 +0200)]
ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX

Fix compilatin after removal of FF_INTERNAL_MEM_TYPE_MAX_VALUE.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years agolavc: provide deprecated avcodec_thread_init until next major version
Anton Khirnov [Wed, 20 Apr 2011 15:21:39 +0000 (17:21 +0200)]
lavc: provide deprecated avcodec_thread_init until next major version

It was deprecated only recently.

13 years agolavc: provide the opt.h header until the next bump
Anton Khirnov [Wed, 20 Apr 2011 15:09:45 +0000 (17:09 +0200)]
lavc: provide the opt.h header until the next bump

AVOptions were moved to libavutil only recently.

13 years agoerror: change AVERROR_EOF value
Anton Khirnov [Wed, 20 Apr 2011 05:14:50 +0000 (07:14 +0200)]
error: change AVERROR_EOF value

The current value is masking the POSIX error code EPIPE, which has a
different semantics.

This breaks API.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoerror: remove AVERROR_NUMEXPECTED
Stefano Sabatini [Sun, 10 Apr 2011 22:29:30 +0000 (00:29 +0200)]
error: remove AVERROR_NUMEXPECTED

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>
13 years agoerror: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c
Stefano Sabatini [Sun, 10 Apr 2011 22:52:04 +0000 (00:52 +0200)]
error: add error code AVERROR_OPTION_NOT_FOUND, and use it in opt.c

The new error code is better than AVERROR(ENOENT), which has a
completely different semantics ("No such file or directory").

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Thu, 21 Apr 2011 01:23:46 +0000 (03:23 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  Makefile: Include dependencies for test tools, too
  Remove a version check in av_log made unnecessary by the big bump.
  update last major version increase dates in APIchanges
  Reduce picture size for yadif.
  oggdec: use av_freep() instead of av_free()
  avio: Fix sanity checks in ffurl_read*
  libavformat: Free AVFormatContext->streams
  libavformat: Make protocols pass URLContext as log context where available
  asf: remove commented out code in asf_read_seek
not pulled:  libpostproc: Remove crufty code disabled by the big bump.
  Reflect 0.7_beta1 release in the Changelog
not pulled:  sws: remove disabled cruft.
  lavu: remove disabled ff_random_get_seed cruft.
  lavu: remove disabled sha1 cruft.

Conflicts:
Changelog
libavutil/sha1.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoIn libx264 wrapper, correctly support 2pass log filename option.
Baptiste Coudurier [Wed, 20 Apr 2011 22:46:20 +0000 (15:46 -0700)]
In libx264 wrapper, correctly support 2pass log filename option.

13 years agoMakefile: Include dependencies for test tools, too
Martin Storsjö [Wed, 20 Apr 2011 18:22:08 +0000 (21:22 +0300)]
Makefile: Include dependencies for test tools, too

This makes seek_test to be rebuilt when its dependencies
has changed. The changes to the dependencies didn't usually matter
in practice, but the introduction of side data in AVPacket required
a recompilation.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoRemove a version check in av_log made unnecessary by the big bump.
Diego Biurrun [Wed, 20 Apr 2011 15:18:27 +0000 (17:18 +0200)]
Remove a version check in av_log made unnecessary by the big bump.

13 years agoavio: fix AVIO_FLAG_READ/WRITE test in ffurl_*.
Nicolas George [Wed, 20 Apr 2011 16:13:54 +0000 (18:13 +0200)]
avio: fix AVIO_FLAG_READ/WRITE test in ffurl_*.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
13 years agoupdate last major version increase dates in APIchanges
Justin Ruggles [Tue, 19 Apr 2011 23:37:29 +0000 (19:37 -0400)]
update last major version increase dates in APIchanges

13 years agoReduce picture size for yadif.
Michael Niedermayer [Wed, 23 Mar 2011 04:31:01 +0000 (04:31 +0000)]
Reduce picture size for yadif.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agooggdec: use av_freep() instead of av_free()
Michael Niedermayer [Tue, 12 Apr 2011 04:22:31 +0000 (04:22 +0000)]
oggdec: use av_freep() instead of av_free()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoavio: Fix sanity checks in ffurl_read*
Martin Storsjö [Wed, 20 Apr 2011 14:09:46 +0000 (17:09 +0300)]
avio: Fix sanity checks in ffurl_read*

This fixes e.g. reading data over HTTP, where the underlying
socket is set to read/write.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolibavformat: Free AVFormatContext->streams
Martin Storsjö [Wed, 20 Apr 2011 09:03:55 +0000 (12:03 +0300)]
libavformat: Free AVFormatContext->streams

After switching this from a statically allocated array to a
dynamically allocated one in the major bump, this needs explicit
freeing.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agolibavformat: Make protocols pass URLContext as log context where available
Martin Storsjö [Wed, 20 Apr 2011 09:40:29 +0000 (11:40 +0200)]
libavformat: Make protocols pass URLContext as log context where available

Since the libavformat major bump, URLContext contains an AVClass,
making it a usable log context.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoasf: remove commented out code in asf_read_seek
Vladimir Pantelic [Wed, 20 Apr 2011 10:31:10 +0000 (12:31 +0200)]
asf: remove commented out code in asf_read_seek

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agolibpostproc: Remove crufty code disabled by the big bump.
Diego Biurrun [Tue, 19 Apr 2011 19:53:48 +0000 (21:53 +0200)]
libpostproc: Remove crufty code disabled by the big bump.

13 years agoXiph CELT/Opus decoder using libcelt.
Nicolas George [Sat, 16 Apr 2011 15:45:30 +0000 (17:45 +0200)]
Xiph CELT/Opus decoder using libcelt.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
13 years agoMove the info union to the end of the vdpau_render_state struct.
Carl Eugen Hoyos [Wed, 20 Apr 2011 07:44:08 +0000 (09:44 +0200)]
Move the info union to the end of the vdpau_render_state struct.

13 years agoReflect 0.7_beta1 release in the Changelog
Reinhard Tartler [Tue, 19 Apr 2011 17:48:44 +0000 (19:48 +0200)]
Reflect 0.7_beta1 release in the Changelog

13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Wed, 20 Apr 2011 02:48:23 +0000 (04:48 +0200)]
Merge remote branch 'qatar/master'

* qatar/master: (37 commits)
  In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function.
  lavc: remove reference to opt.h from Makefile.
  prefer avio_check() over url_exist()
  avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
  lavu: remove misc disabled cruft
  lavu: remove FF_API_OLD_IMAGE_NAMES cruft
NOT PULLED  lavu: remove FF_API_OLD_EVAL_NAMES cruft
  lavc: remove misc disabled cruft.
  lavc: remove the FF_API_INOFFICIAL cruft.
  lavc: remove the FF_API_SET_STRING_OLD cruft.
  lavc: remove the FF_API_USE_LPC cruft.
  lavc: remove the FF_API_SUBTITLE_OLD cruft.
  lavc: remove the FF_API_VIDEO_OLD cruft.
  lavc: remove the FF_API_AUDIO_OLD cruft.
  lavc: remove the FF_API_OPT_SHOW cruft.
  lavc: remove the FF_API_MM_FLAGS cruft.
  lavf: remove misc disabled cruft.
  lavf: remove FF_API_INDEX_BUILT cruft
  lavf: remove FF_API_URL_CLASS cruft.
  lavf: remove FF_API_SYMVER cruft
  ...

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoIn libx264 wrapper, add -level specific option.
Baptiste Coudurier [Tue, 19 Apr 2011 23:12:13 +0000 (16:12 -0700)]
In libx264 wrapper, add -level specific option.

13 years agoFix libx264 fastfirstpass, move apply_fastfirstpass after user customized options.
Baptiste Coudurier [Tue, 19 Apr 2011 22:23:36 +0000 (15:23 -0700)]
Fix libx264 fastfirstpass, move apply_fastfirstpass after user customized options.

13 years agooggparsecelt: cosmetic: order lines more logically.
Nicolas George [Tue, 19 Apr 2011 21:36:29 +0000 (23:36 +0200)]
oggparsecelt: cosmetic: order lines more logically.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
13 years agooggparsecelt: call av_set_pts_info unconditionally.
Nicolas George [Tue, 19 Apr 2011 21:03:51 +0000 (23:03 +0200)]
oggparsecelt: call av_set_pts_info unconditionally.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
13 years agoIn libx264 wrapper, do not set pic quality if no frame is output, avoids
Baptiste Coudurier [Sun, 30 Jan 2011 01:05:42 +0000 (17:05 -0800)]
In libx264 wrapper, do not set pic quality if no frame is output, avoids
uninitialized reads.

13 years agoPrefer codec specific options over global ones, allowing codec
Baptiste Coudurier [Tue, 19 Apr 2011 19:57:46 +0000 (12:57 -0700)]
Prefer codec specific options over global ones, allowing codec
to override global options.

13 years agosws: remove disabled cruft.
Anton Khirnov [Tue, 19 Apr 2011 19:25:10 +0000 (21:25 +0200)]
sws: remove disabled cruft.

13 years agolavu: remove disabled ff_random_get_seed cruft.
Anton Khirnov [Tue, 19 Apr 2011 19:21:44 +0000 (21:21 +0200)]
lavu: remove disabled ff_random_get_seed cruft.

13 years agolavu: remove disabled sha1 cruft.
Anton Khirnov [Tue, 19 Apr 2011 19:16:35 +0000 (21:16 +0200)]
lavu: remove disabled sha1 cruft.

13 years agoIn avcodec_open(), set return code to an error value only when an error occurs
Justin Ruggles [Sun, 17 Apr 2011 20:57:55 +0000 (16:57 -0400)]
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.

13 years agolavc: remove reference to opt.h from Makefile.
Anton Khirnov [Tue, 19 Apr 2011 17:50:23 +0000 (19:50 +0200)]
lavc: remove reference to opt.h from Makefile.

Fixes make install after 3453a231a6cebe5989c213be0f9fd6c71ec5ea23.

13 years agoprefer avio_check() over url_exist()
Stefano Sabatini [Fri, 8 Apr 2011 23:32:37 +0000 (01:32 +0200)]
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>
13 years agoavio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
Stefano Sabatini [Fri, 15 Apr 2011 14:42:09 +0000 (16:42 +0200)]
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.

13 years agolavu: remove misc disabled cruft
Anton Khirnov [Tue, 12 Apr 2011 19:17:26 +0000 (21:17 +0200)]
lavu: remove misc disabled cruft

13 years agolavu: remove FF_API_OLD_IMAGE_NAMES cruft
Anton Khirnov [Tue, 12 Apr 2011 19:11:15 +0000 (21:11 +0200)]
lavu: remove FF_API_OLD_IMAGE_NAMES cruft

13 years agolavu: remove FF_API_OLD_EVAL_NAMES cruft
Anton Khirnov [Tue, 12 Apr 2011 18:57:07 +0000 (20:57 +0200)]
lavu: remove FF_API_OLD_EVAL_NAMES cruft

13 years agolavc: remove misc disabled cruft.
Anton Khirnov [Tue, 12 Apr 2011 18:46:49 +0000 (20:46 +0200)]
lavc: remove misc disabled cruft.

13 years agolavc: remove the FF_API_INOFFICIAL cruft.
Anton Khirnov [Thu, 3 Feb 2011 14:00:50 +0000 (15:00 +0100)]
lavc: remove the FF_API_INOFFICIAL cruft.

13 years agolavc: remove the FF_API_SET_STRING_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:58:59 +0000 (14:58 +0100)]
lavc: remove the FF_API_SET_STRING_OLD cruft.

13 years agolavc: remove the FF_API_USE_LPC cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:51:50 +0000 (14:51 +0100)]
lavc: remove the FF_API_USE_LPC cruft.

13 years agolavc: remove the FF_API_SUBTITLE_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:50:06 +0000 (14:50 +0100)]
lavc: remove the FF_API_SUBTITLE_OLD cruft.

13 years agolavc: remove the FF_API_VIDEO_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:48:39 +0000 (14:48 +0100)]
lavc: remove the FF_API_VIDEO_OLD cruft.

13 years agolavc: remove the FF_API_AUDIO_OLD cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:48:00 +0000 (14:48 +0100)]
lavc: remove the FF_API_AUDIO_OLD cruft.

13 years agolavc: remove the FF_API_OPT_SHOW cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:45:22 +0000 (14:45 +0100)]
lavc: remove the FF_API_OPT_SHOW cruft.

13 years agolavc: remove the FF_API_MM_FLAGS cruft.
Anton Khirnov [Thu, 3 Feb 2011 13:43:53 +0000 (14:43 +0100)]
lavc: remove the FF_API_MM_FLAGS cruft.

13 years agolavf: remove misc disabled cruft.
Anton Khirnov [Wed, 13 Apr 2011 06:01:49 +0000 (08:01 +0200)]
lavf: remove misc disabled cruft.

13 years agolavf: remove FF_API_INDEX_BUILT cruft
Anton Khirnov [Tue, 12 Apr 2011 18:10:10 +0000 (20:10 +0200)]
lavf: remove FF_API_INDEX_BUILT cruft

13 years agolavf: remove FF_API_URL_CLASS cruft.
Anton Khirnov [Thu, 3 Feb 2011 11:53:28 +0000 (12:53 +0100)]
lavf: remove FF_API_URL_CLASS cruft.

13 years agolavf: remove FF_API_SYMVER cruft
Anton Khirnov [Thu, 3 Feb 2011 11:49:12 +0000 (12:49 +0100)]
lavf: remove FF_API_SYMVER cruft

13 years agolavf: remove FF_API_FIRST_FORMAT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:47:18 +0000 (12:47 +0100)]
lavf: remove FF_API_FIRST_FORMAT cruft

13 years agolavf: remove FF_API_PARAMETERS_CODEC_ID cruft
Anton Khirnov [Thu, 3 Feb 2011 11:46:12 +0000 (12:46 +0100)]
lavf: remove FF_API_PARAMETERS_CODEC_ID cruft

13 years agolavf: remove FF_API_LAVF_UNUSED cruft
Anton Khirnov [Thu, 3 Feb 2011 11:45:30 +0000 (12:45 +0100)]
lavf: remove FF_API_LAVF_UNUSED cruft

13 years agolavf: remove FF_API_PARSE_FRAME_PARAM cruft
Anton Khirnov [Thu, 3 Feb 2011 11:44:04 +0000 (12:44 +0100)]
lavf: remove FF_API_PARSE_FRAME_PARAM cruft

13 years agolavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:42:38 +0000 (12:42 +0100)]
lavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruft

13 years agolavf: remove FF_API_URL_SPLIT cruft
Anton Khirnov [Thu, 3 Feb 2011 11:40:25 +0000 (12:40 +0100)]
lavf: remove FF_API_URL_SPLIT cruft

13 years agolavf: remove FF_API_UDP_GET_FILE cruft
Anton Khirnov [Thu, 3 Feb 2011 11:39:11 +0000 (12:39 +0100)]
lavf: remove FF_API_UDP_GET_FILE cruft