ffmpeg.git
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 11 Nov 2011 01:32:38 +0000 (02:32 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (29 commits)
  doc: update libavfilter documentation
  tls: Use the URLContext as logging context
  aes: Avoid illegal read and don't generate more key than we use.
  mpc7: Fix memset call in mpc7_decode_frame function
  atrac1: use correct context for av_log()
  apedec: consume the whole packet when copying to the decoder buffer.
  apedec: do not needlessly copy s->samples to nblocks.
  apedec: check output buffer size after calculating actual output size
  apedec: remove unneeded entropy decoder normalization.
  truespeech: use memmove() in truespeech_update_filters()
  vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
  vorbisdec: remove unneeded buf_size==0 check
  vorbisdec: return proper error codes instead of made-up ones
  http: Don't add a Range: bytes=0- header for POST
  sunrast: Check for invalid/corrupted bitstream
  http: Change the chunksize AVOption into chunked_post
  http: Add encoding/decoding flags to the AVOptions
  avconv: remove some codec-specific hacks
  crypto: add decoding flag to options.
  tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
  ...

Conflicts:
doc/libavfilter.texi
libavcodec/atrac1.c
libavcodec/sunrast.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: update libavfilter documentation
Luca Barbato [Tue, 8 Nov 2011 19:37:58 +0000 (11:37 -0800)]
doc: update libavfilter documentation

Update the reference to the conversion tool to use avconv and
make sure the example line works as supposed.
Remove the paragraph pointing to the svn repo

8 years agocook: fix apparent typo in extradata parsing
K.Y.H [Thu, 10 Nov 2011 23:30:39 +0000 (00:30 +0100)]
cook: fix apparent typo in extradata parsing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agogolomb: Fix overread in get_ur_golomb_jpegls()
Nir Ben David [Thu, 10 Nov 2011 22:03:48 +0000 (23:03 +0100)]
golomb: Fix overread in get_ur_golomb_jpegls()
Fixes Ticket600

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: update examples to use -b:v or -b:a
Lou Logan [Thu, 10 Nov 2011 21:11:33 +0000 (12:11 -0900)]
doc: update examples to use -b:v or -b:a
Fixes Ticket613

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix some 1bit bmp samples, they are palletised.
Carl Eugen Hoyos [Thu, 10 Nov 2011 22:07:27 +0000 (23:07 +0100)]
Fix some 1bit bmp samples, they are palletised.

Fixes ticket #632.

8 years agotls: Use the URLContext as logging context
Martin Storsjö [Thu, 10 Nov 2011 15:52:38 +0000 (17:52 +0200)]
tls: Use the URLContext as logging context

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoaes: Avoid illegal read and don't generate more key than we use.
Alex Converse [Fri, 4 Nov 2011 01:13:57 +0000 (18:13 -0700)]
aes: Avoid illegal read and don't generate more key than we use.

8 years agompc7: Fix memset call in mpc7_decode_frame function
Alex Converse [Wed, 9 Nov 2011 21:40:44 +0000 (13:40 -0800)]
mpc7: Fix memset call in mpc7_decode_frame function

8 years agoatrac1: use correct context for av_log()
Justin Ruggles [Wed, 2 Nov 2011 16:06:04 +0000 (12:06 -0400)]
atrac1: use correct context for av_log()

8 years agoapedec: consume the whole packet when copying to the decoder buffer.
Justin Ruggles [Mon, 31 Oct 2011 18:49:34 +0000 (14:49 -0400)]
apedec: consume the whole packet when copying to the decoder buffer.

This avoids artifically consuming a partial packet but ignoring remaining data
in subsequent calls.

8 years agoapedec: do not needlessly copy s->samples to nblocks.
Justin Ruggles [Mon, 31 Oct 2011 19:10:19 +0000 (15:10 -0400)]
apedec: do not needlessly copy s->samples to nblocks.

also move nblocks to the local scope where it is used.

8 years agoapedec: check output buffer size after calculating actual output size
Justin Ruggles [Mon, 31 Oct 2011 19:03:14 +0000 (15:03 -0400)]
apedec: check output buffer size after calculating actual output size

8 years agoapedec: remove unneeded entropy decoder normalization.
Justin Ruggles [Mon, 31 Oct 2011 18:57:04 +0000 (14:57 -0400)]
apedec: remove unneeded entropy decoder normalization.

The decoder already skips data at the end of the packet without this.
Also remove 2 APEContext fields that were only used for the end-of-frame
normalization.

8 years agotruespeech: use memmove() in truespeech_update_filters()
Justin Ruggles [Sat, 29 Oct 2011 22:25:40 +0000 (18:25 -0400)]
truespeech: use memmove() in truespeech_update_filters()

8 years agovorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
Justin Ruggles [Sun, 30 Oct 2011 22:41:00 +0000 (18:41 -0400)]
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check

The user could provide a larger buffer, which is already checked separately
before writing output.

8 years agovorbisdec: remove unneeded buf_size==0 check
Justin Ruggles [Sun, 30 Oct 2011 22:40:21 +0000 (18:40 -0400)]
vorbisdec: remove unneeded buf_size==0 check

8 years agovorbisdec: return proper error codes instead of made-up ones
Justin Ruggles [Sun, 30 Oct 2011 22:38:19 +0000 (18:38 -0400)]
vorbisdec: return proper error codes instead of made-up ones

8 years agoffmpeg: update timestamping code to handle frame threads
Michael Niedermayer [Thu, 10 Nov 2011 13:59:00 +0000 (14:59 +0100)]
ffmpeg: update timestamping code to handle frame threads

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompeg4videodec: fix lml4 and frame threading without -vsync 0
Michael Niedermayer [Thu, 10 Nov 2011 12:51:38 +0000 (13:51 +0100)]
mpeg4videodec: fix lml4 and frame threading without -vsync 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agohttp: Don't add a Range: bytes=0- header for POST
Martin Storsjö [Thu, 10 Nov 2011 09:09:26 +0000 (11:09 +0200)]
http: Don't add a Range: bytes=0- header for POST

That header simply doesn't make sense in that context.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agosunrast: Check for invalid/corrupted bitstream
Laurent Aimar [Tue, 27 Sep 2011 22:15:32 +0000 (22:15 +0000)]
sunrast: Check for invalid/corrupted bitstream

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
8 years agohttp: Change the chunksize AVOption into chunked_post
Martin Storsjö [Thu, 10 Nov 2011 09:03:35 +0000 (11:03 +0200)]
http: Change the chunksize AVOption into chunked_post

The chunksize internal variable has two different uses - for
reading, it's the amount of data left of the current chunk
(or -1 if the server doesn't send data in chunked mode), where
it's only an internal state variable. For writing, it's used
to decide whether to enable chunked encoding (by default), by
using the value 0, or disable chunked encoding (value -1).

This, while consistent, doesn't make much sense to expose
as an AVOption. This splits the usage of the internal variable
into two variables, chunksize which is used for reading (as
before), and chunked_post which is the user-settable option,
with the values 0 and 1, where 1 is default.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Add encoding/decoding flags to the AVOptions
Anton Khirnov [Thu, 10 Nov 2011 08:34:58 +0000 (09:34 +0100)]
http: Add encoding/decoding flags to the AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavconv: remove some codec-specific hacks
Anton Khirnov [Wed, 9 Nov 2011 20:16:27 +0000 (21:16 +0100)]
avconv: remove some codec-specific hacks

The problem they are supposed to fix is handled in riff.c, so those
hacks are pointless.

8 years agocrypto: add decoding flag to options.
Anton Khirnov [Sat, 5 Nov 2011 13:07:13 +0000 (14:07 +0100)]
crypto: add decoding flag to options.

8 years agotls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
Anton Khirnov [Sat, 5 Nov 2011 11:48:02 +0000 (12:48 +0100)]
tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK

8 years agohttp: use different classes for http and https.
Anton Khirnov [Sat, 5 Nov 2011 11:54:01 +0000 (12:54 +0100)]
http: use different classes for http and https.

8 years agohttp: Change an error log message to a warning
Martin Storsjö [Tue, 8 Nov 2011 23:14:05 +0000 (01:14 +0200)]
http: Change an error log message to a warning

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Remove the now unused ff_http_set_headers custom function
Martin Storsjö [Mon, 7 Nov 2011 09:46:29 +0000 (11:46 +0200)]
http: Remove the now unused ff_http_set_headers custom function

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agomms: Set http custom headers via the AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:48:51 +0000 (11:48 +0200)]
mms: Set http custom headers via the AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agortsp: Set http custom headers via the AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:45:57 +0000 (11:45 +0200)]
rtsp: Set http custom headers via the AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Make custom headers settable via an AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:43:13 +0000 (11:43 +0200)]
http: Make custom headers settable via an AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agocrypto: Don't manually free memory allocated via AVOptions
Martin Storsjö [Tue, 8 Nov 2011 22:50:37 +0000 (00:50 +0200)]
crypto: Don't manually free memory allocated via AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavio: Free URLContext private data allocated via AVOptions
Martin Storsjö [Tue, 8 Nov 2011 22:48:40 +0000 (00:48 +0200)]
avio: Free URLContext private data allocated via AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavc: fix memory errors when encoding invalid h264 codecdata
John Brooks [Thu, 10 Nov 2011 03:14:19 +0000 (20:14 -0700)]
avc: fix memory errors when encoding invalid h264 codecdata

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavc: update AVCodecContext.delay documentation
Michael Niedermayer [Thu, 10 Nov 2011 04:04:17 +0000 (05:04 +0100)]
lavc: update AVCodecContext.delay documentation

Based on reimars suggestion
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopthreads: export the delay that was previously exported by mangling has_b_frames...
Michael Niedermayer [Wed, 9 Nov 2011 17:32:38 +0000 (18:32 +0100)]
pthreads: export the delay that was previously exported by mangling has_b_frames through
AVCodecContext.delay which was previously unused for decoders and fits better.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 10 Nov 2011 02:09:46 +0000 (03:09 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avcodec: add support for planar signed 8-bit PCM.
  ra144enc: add sample_fmts list to ff_ra_144_encoder
  smackaud: use uint8_t* for 8-bit output buffer type
  smackaud: clip output samples
  smackaud: use sign_extend() for difference value instead of casting
  sipr: use a function pointer to select the decode_frame function
  sipr: set mode based on block_align instead of bit_rate
  sipr: do not needlessly set *data_size to 0 when returning an error
  ra288: fix formatting of LOCAL_ALIGNED_16
  udp: Allow specifying the local IP address
  VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
  vc1dec: move an if() block.
  vc1dec: use correct hybrid prediction threshold.
  vc1dec: Partial rewrite of vc1_pred_mv()
  vc1dec: take ME precision into account while scaling MV predictors.
  lavf: don't leak corrupted packets

Conflicts:
libavcodec/8svx.c
libavcodec/ra288.c
libavcodec/version.h
libavformat/iff.c
libavformat/udp.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_fade: reindent after previous commit
Stefano Sabatini [Wed, 9 Nov 2011 00:36:50 +0000 (01:36 +0100)]
vf_fade: reindent after previous commit

8 years agovf_fade: add alpha option and alpha fading support
Mark Himsley [Wed, 9 Nov 2011 00:35:31 +0000 (01:35 +0100)]
vf_fade: add alpha option and alpha fading support

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
8 years agovf_fade: add support to options parsing
Mark Himsley [Wed, 9 Nov 2011 00:17:55 +0000 (01:17 +0100)]
vf_fade: add support to options parsing

Extend fade syntax, required by a pending patch.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
8 years agoavcodec: add support for planar signed 8-bit PCM.
Justin Ruggles [Mon, 31 Oct 2011 17:41:47 +0000 (13:41 -0400)]
avcodec: add support for planar signed 8-bit PCM.

It is found in some 8svx files (e.g. ones created by SoX).
Currently the decoder reuses the 8svx functions because we already have
handling of a single large planar packet for the compressed 8svx codecs.

8 years agolowercase FRWU string
ami_stuff [Wed, 9 Nov 2011 22:04:22 +0000 (23:04 +0100)]
lowercase FRWU string

8556406d38dc2307dd3f187c4528d64f5c350d5f (lavc: lowercase the FRWU codec name)
got partially reverted by ec6402b7c595c3ceed6d1b8c1b75c6aa8336e052
(lavc: use designated initialisers for all codecs.)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agora144enc: add sample_fmts list to ff_ra_144_encoder
Justin Ruggles [Tue, 8 Nov 2011 22:47:09 +0000 (17:47 -0500)]
ra144enc: add sample_fmts list to ff_ra_144_encoder

This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.

8 years agosmackaud: use uint8_t* for 8-bit output buffer type
Justin Ruggles [Wed, 9 Nov 2011 21:21:08 +0000 (16:21 -0500)]
smackaud: use uint8_t* for 8-bit output buffer type

This matches the output sample format and the range of the output values.

8 years agosmackaud: clip output samples
Justin Ruggles [Wed, 9 Nov 2011 21:20:45 +0000 (16:20 -0500)]
smackaud: clip output samples

8 years agosmackaud: use sign_extend() for difference value instead of casting
Justin Ruggles [Wed, 9 Nov 2011 21:19:52 +0000 (16:19 -0500)]
smackaud: use sign_extend() for difference value instead of casting

8 years agovda: set destination image buffer attributes.
Sebastien Zwickert [Wed, 9 Nov 2011 20:08:09 +0000 (21:08 +0100)]
vda: set destination image buffer attributes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoaudioconvert: make av_get_channel_layout accept composite names.
Nicolas George [Tue, 8 Nov 2011 15:32:50 +0000 (16:32 +0100)]
audioconvert: make av_get_channel_layout accept composite names.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosipr: use a function pointer to select the decode_frame function
Justin Ruggles [Fri, 4 Nov 2011 02:10:15 +0000 (22:10 -0400)]
sipr: use a function pointer to select the decode_frame function

8 years agosipr: set mode based on block_align instead of bit_rate
Justin Ruggles [Sat, 29 Oct 2011 05:20:39 +0000 (01:20 -0400)]
sipr: set mode based on block_align instead of bit_rate

the user is not required to set bit_rate

8 years agosipr: do not needlessly set *data_size to 0 when returning an error
Justin Ruggles [Sat, 29 Oct 2011 04:49:38 +0000 (00:49 -0400)]
sipr: do not needlessly set *data_size to 0 when returning an error

8 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Wed, 9 Nov 2011 19:51:39 +0000 (20:51 +0100)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: limit lowres to the maximum supported. Fixes Ticket591

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agora288: fix formatting of LOCAL_ALIGNED_16
Justin Ruggles [Wed, 9 Nov 2011 18:45:50 +0000 (13:45 -0500)]
ra288: fix formatting of LOCAL_ALIGNED_16

8 years agofraps: check overread per sample instead of per line
Michael Niedermayer [Wed, 9 Nov 2011 18:40:59 +0000 (19:40 +0100)]
fraps: check overread per sample instead of per line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofraps: fix memleak
Michael Niedermayer [Wed, 9 Nov 2011 18:33:33 +0000 (19:33 +0100)]
fraps: fix memleak

Found-by reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoudp: Allow specifying the local IP address
Martin Storsjö [Wed, 9 Nov 2011 09:45:01 +0000 (11:45 +0200)]
udp: Allow specifying the local IP address

This is useful if sending multicast data on a host with
multiple interfaces.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoRevert commit 0bc391281ad80d4eb365f3d8978637b07003e8dc
Michael Niedermayer [Wed, 9 Nov 2011 17:58:07 +0000 (18:58 +0100)]
Revert  commit 0bc391281ad80d4eb365f3d8978637b07003e8dc
        ffmpeg: remove -psnr option.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopthreads: drop has_b_frames mangling, its buggy in many many ways,
Michael Niedermayer [Wed, 9 Nov 2011 16:26:19 +0000 (17:26 +0100)]
pthreads: drop has_b_frames mangling, its buggy in many many ways,
not to mention race conditions and that its used for stream copy, used to determine IPB type by
applications and other things.
Fixes various frame drop/timestamp issues with frame multithreading.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck extradata_size before accessing extradata.
Carl Eugen Hoyos [Wed, 9 Nov 2011 13:04:22 +0000 (14:04 +0100)]
Check extradata_size before accessing extradata.

Fixes ticket #627.

8 years agoVC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
shahriman AMS [Tue, 8 Nov 2011 08:51:45 +0000 (08:51 +0000)]
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agovc1dec: move an if() block.
shahriman AMS [Tue, 8 Nov 2011 08:47:33 +0000 (08:47 +0000)]
vc1dec: move an if() block.

There are no reason for "if (c_valid) { ... }" to appear before
"if (b_valid) { ... }".

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agovc1dec: use correct hybrid prediction threshold.
shahriman AMS [Tue, 8 Nov 2011 08:47:32 +0000 (08:47 +0000)]
vc1dec: use correct hybrid prediction threshold.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agovc1dec: Partial rewrite of vc1_pred_mv()
shahriman AMS [Tue, 8 Nov 2011 08:47:31 +0000 (08:47 +0000)]
vc1dec: Partial rewrite of vc1_pred_mv()

The current code is a generalization of the earlier progressive MV
prediction code. This was supposed to predict MVs for both interlaced
and progressive pictures. But the interlaced MV prediction is buggy
and works mostly by luck.

This partially fixes interlaced MV prediction.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agovc1dec: take ME precision into account while scaling MV predictors.
shahriman AMS [Tue, 8 Nov 2011 08:47:30 +0000 (08:47 +0000)]
vc1dec: take ME precision into account while scaling MV predictors.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agolavf: don't leak corrupted packets
Andrey Utkin [Tue, 8 Nov 2011 15:24:04 +0000 (17:24 +0200)]
lavf: don't leak corrupted packets

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agora288: try to fix 10l typo that breaks compile on some platforms
Michael Niedermayer [Wed, 9 Nov 2011 03:53:33 +0000 (04:53 +0100)]
ra288: try to fix 10l typo that breaks compile on some platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoudp: simplify 7a032cb97f743a651138d2da6214c79e0ce089dd
Michael Niedermayer [Wed, 9 Nov 2011 02:51:08 +0000 (03:51 +0100)]
udp: simplify 7a032cb97f743a651138d2da6214c79e0ce089dd

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix segfault on UDP reading
Andrey Utkin [Thu, 3 Nov 2011 07:00:15 +0000 (07:00 +0000)]
Fix segfault on UDP reading

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 9 Nov 2011 01:58:59 +0000 (02:58 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  tls: Use ERR_get_error() in do_tls_poll
  indeo3: Fix a fencepost error.
  mxfdec: Fix comparison of unsigned expression < 0.
  mpegts: set stream id on just created stream, not an unrelated variable
  ra288: return error if input buffer is too small
  ra288: utilize DSPContext.vector_fmul()
  ra288: use memcpy() to copy decoded samples to output
  mace: only calculate output buffer size once
  Remove redundant filename self-references inside files.
  indeo3data: add missing config.h #include for HAVE_BIGENDIAN
  x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
  avplay: reset rdft when closing stream.
  doc/git-howto: expand format-patch and send-email notes.
  lavf: expand doxy for some AVFormatContext fields.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoUse more accurate conversion for rgb15/16 to rgb24/32 (C/MMX).
Themaister [Tue, 8 Nov 2011 15:16:59 +0000 (16:16 +0100)]
Use more accurate conversion for rgb15/16 to rgb24/32 (C/MMX).
Fate update by michael.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofraps: check for overread
Michael Niedermayer [Tue, 8 Nov 2011 21:42:50 +0000 (22:42 +0100)]
fraps: check for overread
Fixeds Ticket619

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegvideo_probe: reduce score for invalid streams
Michael Niedermayer [Tue, 8 Nov 2011 21:24:55 +0000 (22:24 +0100)]
mpegvideo_probe: reduce score for invalid streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: limit lowres to the maximum supported. Fixes Ticket591
Michael Niedermayer [Tue, 8 Nov 2011 02:14:13 +0000 (03:14 +0100)]
ffplay: limit lowres to the maximum supported. Fixes Ticket591

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoFix nonsense buffer hints.
Reimar Döffinger [Tue, 8 Nov 2011 20:20:45 +0000 (21:20 +0100)]
Fix nonsense buffer hints.

The codec uses all previous frames as reference frames, so they
certainly must be preserved and readable.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agotls: Use ERR_get_error() in do_tls_poll
Martin Storsjö [Mon, 7 Nov 2011 09:19:17 +0000 (11:19 +0200)]
tls: Use ERR_get_error() in do_tls_poll

The return value ret isn't an error code that can be passed
to ERR_error_string().

This makes the error messages printed actually contain useful
information.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agompegvideo_probe: Getting rid of the use of GCC language extensions
Michael Niedermayer [Tue, 8 Nov 2011 20:11:58 +0000 (21:11 +0100)]
mpegvideo_probe: Getting rid of the use of GCC language extensions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegvideo_probe: dont be too picky on spec compliance and the lack of system startcodes.
Michael Niedermayer [Tue, 8 Nov 2011 19:29:39 +0000 (20:29 +0100)]
mpegvideo_probe: dont be too picky on spec compliance and the lack of system startcodes.
Fixes Ticket620

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegvideo_probe: count video and audio pes seperately
Michael Niedermayer [Tue, 8 Nov 2011 19:29:06 +0000 (20:29 +0100)]
mpegvideo_probe: count video and audio pes seperately

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegvideo probe: fix slice counting
Michael Niedermayer [Tue, 8 Nov 2011 19:27:17 +0000 (20:27 +0100)]
mpegvideo probe: fix slice counting

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoindeo3: Fix a fencepost error.
Alex Converse [Tue, 8 Nov 2011 02:46:46 +0000 (18:46 -0800)]
indeo3: Fix a fencepost error.

Found with asan and the venerable 1-dog.avi sample.

8 years agomxfdec: Fix comparison of unsigned expression < 0.
Alex Converse [Mon, 7 Nov 2011 18:14:54 +0000 (10:14 -0800)]
mxfdec: Fix comparison of unsigned expression < 0.

'size' is populated by functions returning int64_t and int that return
negative error codes.

8 years agompegts: set stream id on just created stream, not an unrelated variable
Anton Khirnov [Tue, 8 Nov 2011 13:13:30 +0000 (14:13 +0100)]
mpegts: set stream id on just created stream, not an unrelated variable

Bug introduced in 84ad31ff180fa089cd6bfd93c246336a16036455.
Thanks to Uoti Urpala for finding it.

8 years agora288: return error if input buffer is too small
Justin Ruggles [Fri, 4 Nov 2011 00:41:17 +0000 (20:41 -0400)]
ra288: return error if input buffer is too small

8 years agora288: utilize DSPContext.vector_fmul()
Justin Ruggles [Sat, 29 Oct 2011 04:42:48 +0000 (00:42 -0400)]
ra288: utilize DSPContext.vector_fmul()

8 years agora288: use memcpy() to copy decoded samples to output
Justin Ruggles [Sat, 29 Oct 2011 04:09:03 +0000 (00:09 -0400)]
ra288: use memcpy() to copy decoded samples to output

8 years agomace: only calculate output buffer size once
Justin Ruggles [Sat, 29 Oct 2011 01:27:36 +0000 (21:27 -0400)]
mace: only calculate output buffer size once

8 years agoRemove redundant filename self-references inside files.
Diego Biurrun [Sun, 30 Oct 2011 21:08:47 +0000 (22:08 +0100)]
Remove redundant filename self-references inside files.

Filenames are brittle across renames and add no useful information.

8 years agoindeo3data: add missing config.h #include for HAVE_BIGENDIAN
Diego Biurrun [Tue, 8 Nov 2011 15:06:50 +0000 (16:06 +0100)]
indeo3data: add missing config.h #include for HAVE_BIGENDIAN

8 years agox86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
Diego Biurrun [Tue, 8 Nov 2011 12:46:18 +0000 (13:46 +0100)]
x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory

8 years agoflv: Skip invalid index
Michael Niedermayer [Tue, 8 Nov 2011 16:11:02 +0000 (17:11 +0100)]
flv: Skip invalid index

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavplay: reset rdft when closing stream.
Justin Ruggles [Tue, 8 Nov 2011 15:33:18 +0000 (10:33 -0500)]
avplay: reset rdft when closing stream.

this fixes a crash when cycling audio streams if the spectrograph is
displayed.

8 years agoRevert "lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_bu...
Michael Niedermayer [Tue, 8 Nov 2011 14:24:58 +0000 (15:24 +0100)]
Revert "lavc: Init AVFrame->opaque to AVCodecContext.opaque in avcodec_default_get_buffer()"
This commit causes problems for vlc, see https://trac.videolan.org/vlc/ticket/5518

This reverts commit 475fb67d0b391ad1e8e3e8e3d65d7e6892e17e7a.

8 years agodoc/git-howto: expand format-patch and send-email notes.
Anton Khirnov [Tue, 8 Nov 2011 07:07:51 +0000 (08:07 +0100)]
doc/git-howto: expand format-patch and send-email notes.

8 years agolavf: expand doxy for some AVFormatContext fields.
Anton Khirnov [Sun, 6 Nov 2011 14:16:18 +0000 (15:16 +0100)]
lavf: expand doxy for some AVFormatContext fields.

8 years agoCheck for OOM after av_mallocz() in ff_interleave_add_packet().
Carl Eugen Hoyos [Tue, 8 Nov 2011 09:35:14 +0000 (10:35 +0100)]
Check for OOM after av_mallocz() in ff_interleave_add_packet().

Fixes a crash with the sample from Ubuntu bug #869125.

8 years agoSupport decoding "m1v " mpeg1video in mov.
Carl Eugen Hoyos [Tue, 8 Nov 2011 09:33:21 +0000 (10:33 +0100)]
Support decoding "m1v " mpeg1video in mov.

Fixes ticket #579 at least for ffplay.

8 years agoSupport decoding transport streams from Sony NXCAM.
Carl Eugen Hoyos [Tue, 8 Nov 2011 09:30:37 +0000 (10:30 +0100)]
Support decoding transport streams from Sony NXCAM.

Fixes ticket #617.

8 years agoRevert "Warn the user if lowres > max_lowres, set lowres to max_lowres and continue"
Michael Niedermayer [Tue, 8 Nov 2011 02:19:31 +0000 (03:19 +0100)]
Revert "Warn the user if lowres > max_lowres, set lowres to max_lowres and continue"
Changing the lowres value is risky because the user application may have a
local copy and not read back into it, or not undo some lowres dependant things.
A patch implementing this in ffplay is already on ffmpeg-dev, so this feature
should be back soon.

This reverts commit 125ea3ee06c4d71082bee3fc03c65d7c8c10d68c.