ffmpeg.git
9 years agolavu: add av_x_if_null().
Clément Bœsch [Fri, 16 Sep 2011 10:52:45 +0000 (12:52 +0200)]
lavu: add av_x_if_null().

9 years agoFix dxva2 decoding for some H264 samples.
Carl Eugen Hoyos [Wed, 21 Sep 2011 21:41:11 +0000 (23:41 +0200)]
Fix dxva2 decoding for some H264 samples.

9 years agoSupport Sorenson Spark in f4v.
Carl Eugen Hoyos [Wed, 21 Sep 2011 21:33:02 +0000 (23:33 +0200)]
Support Sorenson Spark in f4v.

Such files are produced by the Flash Media Server,
see samples/f4v/H263_NM_f.mp4

9 years agoUse the parser for AC-3 in mov.
Carl Eugen Hoyos [Wed, 21 Sep 2011 21:29:38 +0000 (23:29 +0200)]
Use the parser for AC-3 in mov.

Fixes ticket #494.

9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 21 Sep 2011 19:25:43 +0000 (21:25 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  swfdec: Add support for sample_rate_code 0 (5512 Hz)
  dct-test: factor out some common code and do whas was likely intended
  doc: library versions need to be bumped in version.h
  Revert "ffmpeg: get rid of useless AVInputStream.nb_streams."
  Remove some forgotten AVCodecContext.palctrl usage.
  lavc/utils: move avcodec_init() higher in the file.
  lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
  ac3dec: actually use drc_scale private option
  lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros
  alsa: add missing header
  msmpeg4: remove leftover unused debug variable declaration
  Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.
  Fix av_dlog invocations with wrong or missing logging context.
  vf_yadif: add support to yuva420p
  vf_yadif: correct documentation on the parity parameter
  vf_yadif: copy buffer properties like aspect for second frame as well
  oma: support for encrypted files
  id3v2: add support for non-text and GEOB type tag frames
  des: add possibility to calculate DES-CBC-MAC with small buffer

Conflicts:
ffmpeg.c
libavcodec/dct-test.c
libavformat/mpegts.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswfdec: Add support for sample_rate_code 0 (5512 Hz)
Alex Converse [Wed, 21 Sep 2011 01:40:43 +0000 (18:40 -0700)]
swfdec: Add support for sample_rate_code 0 (5512 Hz)

9 years agodct-test: factor out some common code and do whas was likely intended
Mans Rullgard [Wed, 21 Sep 2011 14:23:34 +0000 (15:23 +0100)]
dct-test: factor out some common code and do whas was likely intended

This fixes some nonsensical code by moving some should-be-shared
code to separate functions and using these.

Signed-off-by: Mans Rullgard <mans@mansr.com>
9 years agodoc: library versions need to be bumped in version.h
Diego Biurrun [Wed, 21 Sep 2011 12:57:29 +0000 (14:57 +0200)]
doc: library versions need to be bumped in version.h

9 years agoRevert "ffmpeg: get rid of useless AVInputStream.nb_streams."
Anton Khirnov [Sun, 11 Sep 2011 10:27:51 +0000 (12:27 +0200)]
Revert "ffmpeg: get rid of useless AVInputStream.nb_streams."

This reverts commit 2cf8355f98681bdd726b739008acd5483f82f8d7.
AVInputStream.nb_streams tracks number of streams found at the
beginning, new streams may appear that ffmpeg doesn't know about. Fixes
crash in this case.

9 years agoRemove some forgotten AVCodecContext.palctrl usage.
Anton Khirnov [Thu, 1 Sep 2011 15:01:53 +0000 (17:01 +0200)]
Remove some forgotten AVCodecContext.palctrl usage.

9 years agolavc/utils: move avcodec_init() higher in the file.
Anton Khirnov [Thu, 1 Sep 2011 14:59:35 +0000 (16:59 +0200)]
lavc/utils: move avcodec_init() higher in the file.

Fixes build on next major bump.

9 years agolavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
Anton Khirnov [Thu, 1 Sep 2011 14:57:20 +0000 (16:57 +0200)]
lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*

9 years agoac3dec: actually use drc_scale private option
Anton Khirnov [Thu, 1 Sep 2011 14:48:29 +0000 (16:48 +0200)]
ac3dec: actually use drc_scale private option

9 years agolavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros
Anton Khirnov [Thu, 1 Sep 2011 14:40:18 +0000 (16:40 +0200)]
lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros

They are still being used and shouldn't be removed.

9 years agoalsa: add missing header
Anton Khirnov [Thu, 1 Sep 2011 14:31:02 +0000 (16:31 +0200)]
alsa: add missing header

Fixes compile with next lavc major.

9 years agomsmpeg4: remove leftover unused debug variable declaration
Diego Biurrun [Tue, 20 Sep 2011 07:10:41 +0000 (09:10 +0200)]
msmpeg4: remove leftover unused debug variable declaration

9 years agoFix assert() calls that need updates after FF_COMMON_FRAME macro elimination.
Diego Biurrun [Tue, 13 Sep 2011 15:00:41 +0000 (17:00 +0200)]
Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.

This fixes build failures with -DDEBUG in CPPFLAGS.

9 years agoFix av_dlog invocations with wrong or missing logging context.
Diego Biurrun [Tue, 13 Sep 2011 15:00:16 +0000 (17:00 +0200)]
Fix av_dlog invocations with wrong or missing logging context.

This fixes build failures with -DDEBUG in CPPFLAGS.

9 years agovf_yadif: add support to yuva420p
Stefano Sabatini [Sat, 27 Aug 2011 16:32:14 +0000 (18:32 +0200)]
vf_yadif: add support to yuva420p

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agovf_yadif: correct documentation on the parity parameter
Stefano Sabatini [Wed, 3 Aug 2011 22:25:35 +0000 (00:25 +0200)]
vf_yadif: correct documentation on the parity parameter

0 is top-field-first, 1 is bottom-field-first, not the other way
around.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agovf_yadif: copy buffer properties like aspect for second frame as well
Joakim Plate [Thu, 14 Jul 2011 20:31:37 +0000 (22:31 +0200)]
vf_yadif: copy buffer properties like aspect for second frame as well

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agooma: support for encrypted files
David Goldwich [Sun, 18 Sep 2011 19:58:09 +0000 (21:58 +0200)]
oma: support for encrypted files

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoid3v2: add support for non-text and GEOB type tag frames
David Goldwich [Sun, 18 Sep 2011 16:04:34 +0000 (18:04 +0200)]
id3v2: add support for non-text and GEOB type tag frames

This extends the ID3v2 parser to allow for reading of non-text (i.e.
other than T***) meta tag frames providing a ff_id3v2_read_all()
function. An additional data structure 'ID3v2ExtraMeta' is introduced
for these tags since AVDictionary is string oriented and unsuitable
for binary data.

A parser for tag frames of type GEOB is implemented, which is needed
to extract keyring information from encrypted OMA files. GEOB data
is parsed into 'ID3v2ExtraMetaGEOB' data structures.

The routine to decode characters from different encodings to UTF-8,
formerly part of the read_ttag() function, is moved to its own
function. Because some tag frames contain subparts of unknown length,
the function is now also able to read until a null character is found.
In addition, the function now takes care of allocating a buffer long
enough to hold the decoded characters.

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agodes: add possibility to calculate DES-CBC-MAC with small buffer
David Goldwich [Fri, 2 Sep 2011 06:20:58 +0000 (08:20 +0200)]
des: add possibility to calculate DES-CBC-MAC with small buffer

This patch adds the possibility to calculate the DES-CBC-MAC of a
source buffer (i.e. the last block of the buffer encrypted in CBC
mode) without having to allocate a destination buffer that is as
long as the complete source buffer, but instead only 8 bytes
for the MAC.

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoprores: Add forgotten Copyright statements
Michael Niedermayer [Wed, 21 Sep 2011 02:03:51 +0000 (04:03 +0200)]
prores: Add forgotten Copyright statements

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 20 Sep 2011 23:05:36 +0000 (01:05 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtmp: Don't blindly skip the 4 trailer bytes from the FLV packets
  rtmp: Handle FLV packets written in more than one write call
  rv34: Check for invalid slice offsets

Conflicts:
libavformat/rtmpproto.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agomp3demux: pass on error code on packet read.
Michael Niedermayer [Tue, 20 Sep 2011 22:51:53 +0000 (00:51 +0200)]
mp3demux: pass on error code on packet read.

Reported-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoprores: Simplify code further
Michael Niedermayer [Tue, 20 Sep 2011 22:05:16 +0000 (00:05 +0200)]
prores: Simplify code further

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoprores: simplify 4444 handling
Jonne Ahner [Tue, 20 Sep 2011 21:54:03 +0000 (23:54 +0200)]
prores: simplify 4444 handling

9 years agoprores: fixes a few prores 4444 samples
Jonne Ahner [Tue, 20 Sep 2011 20:46:36 +0000 (22:46 +0200)]
prores: fixes a few prores 4444 samples

9 years agoprores: use shift instead of multiply
Jonne Ahner [Tue, 20 Sep 2011 20:46:17 +0000 (22:46 +0200)]
prores: use shift instead of multiply

9 years agortspdec: Require TCP-interleaved RTP packets to be at least 11 bytes, instead of 12.
Martin Storsjö [Tue, 20 Sep 2011 19:58:15 +0000 (21:58 +0200)]
rtspdec: Require TCP-interleaved RTP packets to be at least 11 bytes, instead of 12.
(A minimal RTP packet is 12 bytes, but a minimal RTCP packet can be
much smaller, at least as small as 8 bytes.)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibpostproc: mmx code uses stack below %esp, fix that
Yuriy Kaminskiy [Tue, 20 Sep 2011 19:32:35 +0000 (21:32 +0200)]
libpostproc: mmx code uses stack below %esp, fix that

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoUse correct LOCAL_ALIGNED for stack variables instead of DECLARE_ALIGNED.
Reimar Döffinger [Mon, 19 Sep 2011 22:30:25 +0000 (00:30 +0200)]
Use correct LOCAL_ALIGNED for stack variables instead of DECLARE_ALIGNED.

LOCAL_ALIGNED should work for all compilers/systems whereas
DECLARE_ALIGNED does not work on some (do not remember which though).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoRemove unused variable.
Reimar Döffinger [Mon, 19 Sep 2011 21:06:15 +0000 (23:06 +0200)]
Remove unused variable.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agoHack around gcc 4.6 breaking asm using call.
Reimar Döffinger [Sun, 28 Aug 2011 19:14:13 +0000 (21:14 +0200)]
Hack around gcc 4.6 breaking asm using call.

gcc 4.6 no longer decrements esp to account for local variables.
Thus using call will end up overwriting some local variable.
So add an extra one it can safely clobber.
This is a huge hack because it's basically pure chance it works,
no idea how this is supposed to be done.

Fixes trac ticket #397.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years agortmp: Don't blindly skip the 4 trailer bytes from the FLV packets
Martin Storsjö [Tue, 20 Sep 2011 13:00:52 +0000 (16:00 +0300)]
rtmp: Don't blindly skip the 4 trailer bytes from the FLV packets

If not enough bytes are available, keep track of them and skip
them on next call.

In practice, if these trailer bytes are written in a separate
call, there is no other data written in this call, making it
fall into the "FLV packet too small" case currently - working,
but not as intended.

This patch makes the code more robust, handling all cases
except for having the FLV packet header split over multiple
write calls.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agortmp: Handle FLV packets written in more than one write call
Chiranjeevi Melam [Sun, 18 Sep 2011 03:39:53 +0000 (05:39 +0200)]
rtmp: Handle FLV packets written in more than one write call

If the FLV packet is larger than the AVIO buffer, a partial
FLV packet will be flushed to the RTMP protocol.

This commit handles the most common cases of FLV packets
being written in more than one call.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agorv34: Check for invalid slice offsets
Laurent Aimar [Mon, 19 Sep 2011 20:48:53 +0000 (22:48 +0200)]
rv34: Check for invalid slice offsets

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agomov: Fix grayscale Cinepak in mov
Michael Niedermayer [Tue, 20 Sep 2011 04:19:25 +0000 (06:19 +0200)]
mov: Fix grayscale Cinepak in mov
Fixes Ticket165

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavfilter/libmpcodecs: add vf_stereo3d support
Michael Niedermayer [Tue, 20 Sep 2011 03:40:05 +0000 (05:40 +0200)]
libavfilter/libmpcodecs: add vf_stereo3d support
(code from mplayer see their svn for detailed authorship)
parameters must be integers as we do not have mplayers parser
also the stuff passed to it through non constant globals is not supported
this should be fixed in mplayer first.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibmpcodecs: some hunks from mplayer HEAD
Michael Niedermayer [Tue, 20 Sep 2011 03:14:52 +0000 (05:14 +0200)]
libmpcodecs: some hunks from mplayer HEAD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavf/utils: better dts wrap correction.
Michael Niedermayer [Tue, 20 Sep 2011 02:32:46 +0000 (04:32 +0200)]
lavf/utils: better dts wrap correction.
Fixes Ticket488

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoh264: do not increase recovery frame which would lead to endless moving away of the...
Michael Niedermayer [Tue, 20 Sep 2011 00:37:46 +0000 (02:37 +0200)]
h264: do not increase recovery frame which would lead to endless moving away of the recovery point.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoh264: reset recovery frame on seeks.
Michael Niedermayer [Tue, 20 Sep 2011 00:37:37 +0000 (02:37 +0200)]
h264: reset recovery frame on seeks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoCheck for invalid slice offsets in real decoder.
Laurent Aimar [Mon, 19 Sep 2011 20:48:53 +0000 (22:48 +0200)]
Check for invalid slice offsets in real decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoregtests: add a flashsv2 decoder test limited to keyframes
Michael Niedermayer [Mon, 19 Sep 2011 23:12:42 +0000 (01:12 +0200)]
regtests: add a flashsv2 decoder test limited to keyframes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 19 Sep 2011 20:45:34 +0000 (22:45 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: fix NULL reference in mov_write_tkhd_tag
  rmdec: Reject invalid deinterleaving parameters
  rv34: Fix potential overreads
  rv34: Fix buffer size used for MC of B frames after a resolution change
  rv34: Avoid NULL dereference on corrupted bitstream
  rv10: Reject slices that does not have the same type as the first one
  vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag
  vsrc_color: set output pos values to -1
  vsrc_color: add @file doxy
  vsrc_buffer: remove duplicated file description
  eval: implement not() expression
  eval: add sqrt function for computing the square root
  rmdec: use the deinterleaving mode and not the codec when creating audio packets.
  lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Conflicts:
doc/eval.texi
doc/filters.texi
libavcodec/rv10.c
libavfilter/vsrc_color.c
libavformat/rmdec.c
libavutil/avutil.h
libavutil/eval.c
tests/ref/fate/eval

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoallcodecs: cosmetic
Michael Niedermayer [Mon, 19 Sep 2011 19:52:06 +0000 (21:52 +0200)]
allcodecs: cosmetic

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agogitignore: add libswresample*
Michael Niedermayer [Mon, 19 Sep 2011 15:39:01 +0000 (17:39 +0200)]
gitignore: add libswresample*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMAINTAINERS: add my GPG fingerprint.
Gwenole Beauchesne [Mon, 19 Sep 2011 14:57:10 +0000 (16:57 +0200)]
MAINTAINERS: add my GPG fingerprint.

9 years agomovenc: fix NULL reference in mov_write_tkhd_tag
Anton Khirnov [Mon, 19 Sep 2011 13:15:56 +0000 (15:15 +0200)]
movenc: fix NULL reference in mov_write_tkhd_tag

st may be NULL when there are more mov streams than AVStreams, e.g. when
chapters are present.

9 years agormdec: Reject invalid deinterleaving parameters
Laurent Aimar [Fri, 16 Sep 2011 22:05:13 +0000 (00:05 +0200)]
rmdec: Reject invalid deinterleaving parameters

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agorv34: Fix potential overreads
Laurent Aimar [Sat, 17 Sep 2011 14:56:30 +0000 (16:56 +0200)]
rv34: Fix potential overreads

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agorv34: Fix buffer size used for MC of B frames after a resolution change
Laurent Aimar [Sat, 17 Sep 2011 14:56:36 +0000 (16:56 +0200)]
rv34: Fix buffer size used for MC of B frames after a resolution change

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agorv34: Avoid NULL dereference on corrupted bitstream
Laurent Aimar [Sat, 17 Sep 2011 21:43:58 +0000 (23:43 +0200)]
rv34: Avoid NULL dereference on corrupted bitstream

rv34_decode_slice() can return without allocating any pictures.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agorv10: Reject slices that does not have the same type as the first one
Laurent Aimar [Sat, 17 Sep 2011 22:03:08 +0000 (00:03 +0200)]
rv10: Reject slices that does not have the same type as the first one

This prevents crashes with some corrupted bitstreams.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agovf_yadif: add an option to enable/disable deinterlacing based on src frame "interlace...
Joakim Plate [Sun, 3 Jul 2011 11:19:44 +0000 (13:19 +0200)]
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag

Signed-off-by: Joakim Plate <elupus@ecce.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agovsrc_color: set output pos values to -1
Stefano Sabatini [Fri, 17 Jun 2011 23:47:37 +0000 (01:47 +0200)]
vsrc_color: set output pos values to -1

-1 is more correct than 0, as the position in the file is undefined.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agovsrc_color: add @file doxy
Stefano Sabatini [Fri, 17 Jun 2011 23:46:27 +0000 (01:46 +0200)]
vsrc_color: add @file doxy

Also remove outdated reference to color in vf_pad.c.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agovsrc_buffer: remove duplicated file description
Stefano Sabatini [Wed, 25 May 2011 07:37:25 +0000 (09:37 +0200)]
vsrc_buffer: remove duplicated file description

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoeval: implement not() expression
Stefano Sabatini [Mon, 23 May 2011 11:13:50 +0000 (13:13 +0200)]
eval: implement not() expression

9 years agoeval: add sqrt function for computing the square root
Stefano Sabatini [Tue, 3 May 2011 21:31:14 +0000 (23:31 +0200)]
eval: add sqrt function for computing the square root

9 years agormdec: use the deinterleaving mode and not the codec when creating audio packets.
Laurent Aimar [Sat, 17 Sep 2011 21:17:45 +0000 (21:17 +0000)]
rmdec: use the deinterleaving mode and not the codec when creating audio packets.

It prevents crashes due to non initialized fields.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agoSupport 3IVD in isom, produced by 3ivx DivX Doctor.
Carl Eugen Hoyos [Mon, 19 Sep 2011 10:20:42 +0000 (12:20 +0200)]
Support 3IVD in isom, produced by 3ivx DivX Doctor.

Fixes ticket #486.

9 years agolavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
David Goldwich [Sat, 17 Sep 2011 11:50:35 +0000 (13:50 +0200)]
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years agorematrix: dont use floats for int16 code.
Michael Niedermayer [Mon, 19 Sep 2011 07:18:05 +0000 (09:18 +0200)]
rematrix: dont use floats for int16 code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agorematrix: use double during init.
Michael Niedermayer [Mon, 19 Sep 2011 06:44:49 +0000 (08:44 +0200)]
rematrix: use double during init.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswr: replace sqrt(0.5) by M_SQRT1_2
Michael Niedermayer [Mon, 19 Sep 2011 06:44:24 +0000 (08:44 +0200)]
swr: replace sqrt(0.5) by M_SQRT1_2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: swr pkgconfig
Michael Niedermayer [Mon, 19 Sep 2011 05:32:38 +0000 (07:32 +0200)]
configure: swr pkgconfig

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoswr: fix shared lib build
Michael Niedermayer [Mon, 19 Sep 2011 05:26:42 +0000 (07:26 +0200)]
swr: fix shared lib build

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoAdd libswresample.
Michael Niedermayer [Mon, 19 Sep 2011 04:13:30 +0000 (06:13 +0200)]
Add libswresample.
Similar to libswscale this does resampling and format convertion, just for audio
instead of video.
changing sampling rate, sample formats, channel layouts and sample packing all
in one with a very simple public interface.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agocalculate frame_num for recovery point "keyframe"
John Stebbins [Sun, 18 Sep 2011 20:10:52 +0000 (13:10 -0700)]
calculate frame_num for recovery point "keyframe"

recovery points that have non-zero recovery_frame_cnt resulted in
flagging incomplete frames as keyframes. This delays setting the
keyframe flag till the frame has been fully constructed.

9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 18 Sep 2011 20:26:46 +0000 (22:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc/APIChanges: fill in missing hashes and dates.

Conflicts:
doc/APIchanges

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoFix compilation with --disable-everything --enable-outdev=alsa.
Carl Eugen Hoyos [Sun, 18 Sep 2011 20:22:45 +0000 (22:22 +0200)]
Fix compilation with --disable-everything --enable-outdev=alsa.

Bug found and analysed by skierpage.

9 years agoh264dec: add forgotten copying of h->sync
Michael Niedermayer [Sun, 18 Sep 2011 17:02:37 +0000 (19:02 +0200)]
h264dec: add forgotten copying of h->sync

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoFix compilation without --disable-swscale.
Carl Eugen Hoyos [Sun, 18 Sep 2011 17:06:49 +0000 (19:06 +0200)]
Fix compilation without --disable-swscale.

9 years agoFix compilation with --disable-swscale.
Carl Eugen Hoyos [Sun, 18 Sep 2011 16:57:35 +0000 (18:57 +0200)]
Fix compilation with --disable-swscale.

Fixes ticket #482.

9 years agoSet AV_PKT_FLAG_KEY based on nupplevideo header
Joakim Plate [Sun, 11 Sep 2011 15:59:32 +0000 (17:59 +0200)]
Set AV_PKT_FLAG_KEY based on nupplevideo header

Based from lipbmpdemux/nupplevideo.h and from myth NuppelVideoRecorder.cpp

9 years agoadd support for generic seeking by reading timestamps in nuv
Joakim Plate [Mon, 12 Sep 2011 17:33:31 +0000 (19:33 +0200)]
add support for generic seeking by reading timestamps in nuv

9 years agodoc/filters: fix numer/number typo.
Clément Bœsch [Sun, 18 Sep 2011 15:28:53 +0000 (17:28 +0200)]
doc/filters: fix numer/number typo.

9 years agolavfi: fix avfilter_get_audio_buffer() doxy to match reality.
Clément Bœsch [Sun, 18 Sep 2011 15:30:33 +0000 (17:30 +0200)]
lavfi: fix avfilter_get_audio_buffer() doxy to match reality.

9 years agolavc: better reference to AVOptions
Michael Niedermayer [Sun, 18 Sep 2011 13:41:28 +0000 (15:41 +0200)]
lavc: better reference to AVOptions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoh264dec: Support CODEC_FLAG2_SHOW_ALL.
Michael Niedermayer [Sun, 18 Sep 2011 13:25:19 +0000 (15:25 +0200)]
h264dec: Support CODEC_FLAG2_SHOW_ALL.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agompeg2dec: support CODEC_FLAG2_SHOW_ALL.
Michael Niedermayer [Sun, 18 Sep 2011 13:20:36 +0000 (15:20 +0200)]
mpeg2dec: support CODEC_FLAG2_SHOW_ALL.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavc: Document that AVOptions should be used.
Michael Niedermayer [Sun, 18 Sep 2011 13:20:05 +0000 (15:20 +0200)]
lavc: Document that AVOptions should be used.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolavc: add CODEC_FLAG2_SHOW_ALL
Michael Niedermayer [Sun, 18 Sep 2011 13:18:35 +0000 (15:18 +0200)]
lavc: add CODEC_FLAG2_SHOW_ALL

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoasrc_anullsrc: amend description to reflect the recent changes
Stefano Sabatini [Sun, 18 Sep 2011 12:26:37 +0000 (14:26 +0200)]
asrc_anullsrc: amend description to reflect the recent changes

9 years agoasrc_anullsrc: globally prefer "null" over "priv" for indicating the filter context
Stefano Sabatini [Sat, 17 Sep 2011 10:52:54 +0000 (12:52 +0200)]
asrc_anullsrc: globally prefer "null" over "priv" for indicating the filter context

More locally and globally consistent.

9 years agoasrc_anullsrc: do not show the int64_t value for channel_layout
Stefano Sabatini [Sat, 17 Sep 2011 10:50:24 +0000 (12:50 +0200)]
asrc_anullsrc: do not show the int64_t value for channel_layout

That was clumsy and confusing, only show the descriptive channel
layout string.

9 years agoasrc_anullsrc: implement a request_frame callback for returning frames
Stefano Sabatini [Sat, 17 Sep 2011 01:17:06 +0000 (03:17 +0200)]
asrc_anullsrc: implement a request_frame callback for returning frames

This is mainly useful for filters (like the sox synth), which
overwrite the content of the passed data.

9 years agoasrc_anullsrc: extend syntax to make it accept a non positional list of arguments
Stefano Sabatini [Sat, 17 Sep 2011 10:31:21 +0000 (12:31 +0200)]
asrc_anullsrc: extend syntax to make it accept a non positional list of arguments

The new syntax is more extensible and more user-friendly.

This breaks the previous syntax, should not be an issue as possibly
no-one is already using anullsrc.

9 years agodoc/APIChanges: fill in missing hashes and dates.
Anton Khirnov [Sun, 18 Sep 2011 06:55:01 +0000 (08:55 +0200)]
doc/APIChanges: fill in missing hashes and dates.

9 years agortmpproto.c: Fixed RTMP Stream output issue
Chiranjeevi Melam [Sun, 18 Sep 2011 03:39:53 +0000 (05:39 +0200)]
rtmpproto.c: Fixed RTMP Stream output issue

Original code had the assumption of only one FLV packet per RTMP packet. But that assumption is incorrect for higher bit rates. Made changes to the code to accommodate more than one FLV packet per RTMP
+packet.

9 years agompegpsdec: fix reading first mpegps packet
Arne de Bruijn [Sat, 17 Sep 2011 12:59:00 +0000 (14:59 +0200)]
mpegpsdec: fix reading first mpegps packet

9 years agoAvoid NULL dereference on corrupted bitstream with real decoder.
Laurent Aimar [Sat, 17 Sep 2011 21:43:58 +0000 (23:43 +0200)]
Avoid NULL dereference on corrupted bitstream with real decoder.

rv34_decode_slice() can return without allocating any pictures.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoReject slices that does not have the same type than the first one in RV10/RV20 decoder.
Laurent Aimar [Sat, 17 Sep 2011 22:17:44 +0000 (00:17 +0200)]
Reject slices that does not have the same type than the first one in RV10/RV20 decoder.

This prevents crashes with some corrupted bitstreams.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agotimecode: relicense to LGPLv2+ with permission of Baptiste and ubitux.
Michael Niedermayer [Sat, 17 Sep 2011 22:29:32 +0000 (00:29 +0200)]
timecode: relicense to LGPLv2+ with permission of Baptiste and ubitux.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 17 Sep 2011 20:25:13 +0000 (22:25 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavfi: add select filter
  oggdec: fix out of bound write in the ogg demuxer
  movenc: create an alternate group for each media type
  lavd: add libcdio-paranoia input device for audio CD grabbing
  rawdec: refactor private option for raw video demuxers
  pcmdec: use unique classes for all pcm demuxers.
  rawdec: g722 is always 1 channel/16kHz

Conflicts:
Changelog
configure
doc/filters.texi
libavdevice/avdevice.h
libavfilter/avfilter.h
libavfilter/vf_select.c
tests/ref/lavf/mov

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agocheck all svq3_get_ue_golomb() returns.
Michael Niedermayer [Sat, 17 Sep 2011 19:53:21 +0000 (21:53 +0200)]
check all svq3_get_ue_golomb() returns.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>