ffmpeg.git
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 22 Sep 2011 22:23:10 +0000 (00:23 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Add LATM demuxer
  avplay: flush audio decoder with empty packets at EOF if the decoder has CODEC_CAP_DELAY set.
  8svx/iff: fix decoding of compressed stereo 8svx files.
  8svx: log an error message if output buffer is too small
  8svx: check packet size before reading the initial sample value.
  8svx: output 8-bit samples instead of 16-bit.
  8svx: split delta decoding into a separate function.
  mp4: Don't read an empty Decoder Config Descriptor
  fate.sh: Ignore errors from rm command during cleanup.
  fate.sh: Run git-pull in quiet mode to avoid console spam.
  Apple ProRes decoder
  rtmp: Make the input FLV parser handle data cut at any point
  rv34: Check for invalid slices offsets
  eval: test isnan(sqrt(-1)) instead of just sqrt(-1)

Conflicts:
Changelog
libavcodec/8svx.c
libavcodec/proresdec.c
libavcodec/version.h
libavformat/iff.c
libavformat/version.h
tests/ref/fate/eval

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomatroskadec: Fix seeking for matroska files with CUES before first cluster
Aaron Colwell [Thu, 22 Sep 2011 14:51:00 +0000 (07:51 -0700)]
matroskadec: Fix seeking for matroska files with CUES before first cluster

This change fixes a bug where seeking doesn't work properly for
matroska files that have the CUES element before the first cluster.
This bug was accidentally introduced a few months ago by my deferred CUES
loading patch<http://git.videolan.org/?p=ffmpeg.git;a=commit;h=31ad14c21e0735387ba8082c6e3436241f7ccfc8>
.

When the CUES element appears before the first cluster in the file, the data
is parsed and placed in matroska->index but that data is never added to the
seek index. Currently the transfer from matroska->index to the seek index
only happens when matroska_parse_cues() is called.
Matroska_parse_cues() only gets called on a seek if cues_parsing_deferred is
set. Cues_parsing_deferred only gets set if parsing the CUES requires
seeking past the first cluster. There is no code to handle the case where
CUES is before the first cluster.

This fix essentially restores the matroska->index processing that was
happening at the end of matroska_read_header() before I made my CUES
deferral change. In the case where CUES is before the first
cluster, matroska->index will have data and the seek index will be updated.
In the case where CUES is later in the file, matroska->index will be empty
and cues_parsing_deferred will be set so loading will happen later.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdd LATM demuxer
Janne Grunau [Tue, 6 Sep 2011 20:08:29 +0000 (22:08 +0200)]
Add LATM demuxer

This is a raw demuxer for the AAC LATM decoder and thus limited to
single stream LOAS.

8 years agoavplay: flush audio decoder with empty packets at EOF if the decoder has
Justin Ruggles [Wed, 7 Sep 2011 19:29:53 +0000 (15:29 -0400)]
avplay: flush audio decoder with empty packets at EOF if the decoder has
CODEC_CAP_DELAY set.

8 years ago8svx/iff: fix decoding of compressed stereo 8svx files.
Justin Ruggles [Wed, 7 Sep 2011 19:28:07 +0000 (15:28 -0400)]
8svx/iff: fix decoding of compressed stereo 8svx files.

Make the iff demuxer send the whole audio chunk to the decoder as a
single packet and move stereo interleaving from the iff demuxer to the
decoder.

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

8 years ago8svx: log an error message if output buffer is too small
Justin Ruggles [Tue, 6 Sep 2011 22:49:07 +0000 (18:49 -0400)]
8svx: log an error message if output buffer is too small

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

8 years ago8svx: check packet size before reading the initial sample value.
Justin Ruggles [Tue, 6 Sep 2011 22:43:55 +0000 (18:43 -0400)]
8svx: check packet size before reading the initial sample value.

8 years ago8svx: output 8-bit samples instead of 16-bit.
Justin Ruggles [Tue, 6 Sep 2011 22:40:06 +0000 (18:40 -0400)]
8svx: output 8-bit samples instead of 16-bit.

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

8 years ago8svx: split delta decoding into a separate function.
Justin Ruggles [Tue, 6 Sep 2011 19:13:59 +0000 (15:13 -0400)]
8svx: split delta decoding into a separate function.

Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed

8 years agomp4: Don't read an empty Decoder Config Descriptor
Alex Converse [Wed, 21 Sep 2011 22:26:35 +0000 (15:26 -0700)]
mp4: Don't read an empty Decoder Config Descriptor

8 years agolavf/utils: only complain about aspect missmatch when the difference is "meassureable"
Michael Niedermayer [Thu, 22 Sep 2011 16:17:28 +0000 (18:17 +0200)]
lavf/utils: only complain about aspect missmatch when the difference is "meassureable"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompeg4videoenc: remove forgotten return -1
Michael Niedermayer [Thu, 22 Sep 2011 16:16:57 +0000 (18:16 +0200)]
mpeg4videoenc: remove forgotten return -1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate.sh: Ignore errors from rm command during cleanup.
Diego Biurrun [Tue, 20 Sep 2011 15:09:45 +0000 (17:09 +0200)]
fate.sh: Ignore errors from rm command during cleanup.

The install directory being deleted might not be present if the build failed.
This can lead to annoying error output if the FATE client is run as a cronjob.

8 years agofate.sh: Run git-pull in quiet mode to avoid console spam.
Diego Biurrun [Tue, 20 Sep 2011 15:09:44 +0000 (17:09 +0200)]
fate.sh: Run git-pull in quiet mode to avoid console spam.

Since fate.sh can be run from cron, silent commands are preferrable.

8 years agompeg4videoenc: guess a good aspect when we cant store the exact one.
Michael Niedermayer [Thu, 22 Sep 2011 12:08:39 +0000 (14:08 +0200)]
mpeg4videoenc: guess a good aspect when we cant store the exact one.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoApple ProRes decoder
Maxim Poliakovski [Wed, 21 Sep 2011 11:09:32 +0000 (13:09 +0200)]
Apple ProRes decoder

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoCosmetics: Fix typo.
Carl Eugen Hoyos [Thu, 22 Sep 2011 11:36:33 +0000 (13:36 +0200)]
Cosmetics: Fix typo.

8 years agortmp: Make the input FLV parser handle data cut at any point
Martin Storsjö [Wed, 21 Sep 2011 20:21:30 +0000 (23:21 +0300)]
rtmp: Make the input FLV parser handle data cut at any point

This makes the RTMP writing code able to handle FLV data
fed in arbitrarily small or large chunks, with multiple
consecutive packets in one write call, or having the FLV
packet header split over numerous write calls.

When used in conjunction with the flv muxer, the AVIO buffer
size still needs to be large enough to fit the initial metadata
packet though, since the size of that packet is written with a
seekback.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agorv34: Check for invalid slices offsets
Laurent Aimar [Wed, 21 Sep 2011 18:46:31 +0000 (20:46 +0200)]
rv34: Check for invalid slices offsets

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoeval: test isnan(sqrt(-1)) instead of just sqrt(-1)
Anton Khirnov [Wed, 21 Sep 2011 18:25:19 +0000 (20:25 +0200)]
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)

sqrt(-1) returns "some NaN", it's not specified which exactly.

8 years agopresets: use private options in libx264-ipod ffpresets
Lou Logan [Thu, 22 Sep 2011 02:51:03 +0000 (18:51 -0800)]
presets: use private options in libx264-ipod ffpresets

Change flags2 options to supported libx264 private options.

8 years agoprores: skip alpha if present
Jonne Ahner [Thu, 22 Sep 2011 00:40:49 +0000 (02:40 +0200)]
prores: skip alpha if present

8 years agovf_drawtext: remove useless and misnamed intermediary "baseline" variable in draw_text()
Stefano Sabatini [Wed, 21 Sep 2011 21:47:44 +0000 (23:47 +0200)]
vf_drawtext: remove useless and misnamed intermediary "baseline" variable in draw_text()

8 years agovf_drawtext: fix background box coloring with RGB formats != RGBA
Stefano Sabatini [Wed, 21 Sep 2011 09:02:36 +0000 (11:02 +0200)]
vf_drawtext: fix background box coloring with RGB formats != RGBA

drawbox() expects a color specified in RGBA format, while the code was
providing a color with the components specified in the same order of
the input pixel format.

In particular, fix box coloring with AXXX RGB formats.

8 years agovf_drawtext: prefer int over unsigned int
Stefano Sabatini [Tue, 20 Sep 2011 00:17:08 +0000 (02:17 +0200)]
vf_drawtext: prefer int over unsigned int

This avoids overflow errors when the considered x and y values are
negative, as required by the incoming patches.

8 years agovf_drawtext: use @itemize environment for showing examples in docs
Stefano Sabatini [Tue, 20 Sep 2011 10:48:25 +0000 (12:48 +0200)]
vf_drawtext: use @itemize environment for showing examples in docs

Beautify.

8 years agoCheck for huffman tree building error in vp6 decoder.
Laurent Aimar [Wed, 21 Sep 2011 18:46:32 +0000 (20:46 +0200)]
Check for huffman tree building error in vp6 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoRelease old pictures after a resolution change in vp5/6 decoder
Laurent Aimar [Wed, 21 Sep 2011 18:46:33 +0000 (20:46 +0200)]
Release old pictures after a resolution change in vp5/6 decoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck for missing reference in vp5/6 decoder.
Laurent Aimar [Wed, 21 Sep 2011 18:46:30 +0000 (20:46 +0200)]
Check for missing reference in vp5/6 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck for invalid slices offsets in RV30/40 decoder.
Laurent Aimar [Wed, 21 Sep 2011 18:46:31 +0000 (20:46 +0200)]
Check for invalid slices offsets in RV30/40 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck output buffer size in nellymoser decoder.
Laurent Aimar [Wed, 21 Sep 2011 18:46:29 +0000 (20:46 +0200)]
Check output buffer size in nellymoser decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffprobe: remove misplaced and pointless comment.
Clément Bœsch [Fri, 16 Sep 2011 10:53:28 +0000 (12:53 +0200)]
ffprobe: remove misplaced and pointless comment.

8 years agoffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.
Clément Bœsch [Fri, 16 Sep 2011 10:54:51 +0000 (12:54 +0200)]
ffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.

8 years agoffprobe: remove media_type_string() by inlining av_x_if_null().
Clément Bœsch [Fri, 16 Sep 2011 10:54:19 +0000 (12:54 +0200)]
ffprobe: remove media_type_string() by inlining av_x_if_null().

8 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().

8 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.

8 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

8 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.

8 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>
8 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)

8 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>
8 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

8 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.

8 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.

8 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.

8 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_*

8 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

8 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.

8 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.

8 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

8 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.

8 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.

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 years agoprores: simplify 4444 handling
Jonne Ahner [Tue, 20 Sep 2011 21:54:03 +0000 (23:54 +0200)]
prores: simplify 4444 handling

8 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

8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 years agoMAINTAINERS: add my GPG fingerprint.
Gwenole Beauchesne [Mon, 19 Sep 2011 14:57:10 +0000 (16:57 +0200)]
MAINTAINERS: add my GPG fingerprint.

8 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.

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 years agoeval: implement not() expression
Stefano Sabatini [Mon, 23 May 2011 11:13:50 +0000 (13:13 +0200)]
eval: implement not() expression

8 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

8 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>
8 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.

8 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>