]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agoexr: fix scan_line_size calculation
Paul B Mahol [Fri, 13 Jul 2012 23:48:50 +0000 (23:48 +0000)]
exr: fix scan_line_size calculation

This one will also work in cases when file have channels
we are not going to use.

Only compressed files where affected by this bug.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoexr: print channel names not yet supported
Paul B Mahol [Fri, 13 Jul 2012 22:50:59 +0000 (22:50 +0000)]
exr: print channel names not yet supported

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoexr: remove double ;;
Paul B Mahol [Fri, 13 Jul 2012 21:14:01 +0000 (21:14 +0000)]
exr: remove double ;;

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoexr: frame multithreading support
Paul B Mahol [Thu, 12 Jul 2012 20:39:55 +0000 (20:39 +0000)]
exr: frame multithreading support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 13 Jul 2012 20:21:38 +0000 (22:21 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  build: Fix APE tag dependencies
  MS Expression Encoder Screen decoder
  libfdk-aac: Allow setting the encoder bandwidth/cutoff frequency

Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/version.h
libavformat/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1enc: use default number of slices if unspecified
Michael Niedermayer [Fri, 13 Jul 2012 19:41:56 +0000 (21:41 +0200)]
ffv1enc: use default number of slices if unspecified

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1dec: print timestamp at which a CRC mismatch happened
Michael Niedermayer [Fri, 13 Jul 2012 19:03:26 +0000 (21:03 +0200)]
ffv1dec: print timestamp at which a CRC mismatch happened

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoadd PLV1 fourcc to mpeg4
Compn [Fri, 13 Jul 2012 19:10:53 +0000 (15:10 -0400)]
add PLV1 fourcc to mpeg4
works on http://samples.ffmpeg.org/V-codecs/PLV1/york-water-meteor.avi

11 years agolavc: add pkt_timebase to allow avcodec to adjust pkt_dts/pts when needed
Michael Niedermayer [Thu, 12 Jul 2012 20:17:10 +0000 (22:17 +0200)]
lavc: add pkt_timebase to allow avcodec to adjust pkt_dts/pts when needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodoc/ffmpeg: document more deeply -re option.
burek [Wed, 11 Jul 2012 19:22:43 +0000 (21:22 +0200)]
doc/ffmpeg: document more deeply -re option.

Signed-off-by: Clément Bœsch <ubitux@gmail.com>
Signed-off-by: Lou Logan <lou@lrcd.com>
11 years agodoc/protocol.texi: fix missed application reference
Michael Niedermayer [Fri, 13 Jul 2012 15:17:21 +0000 (17:17 +0200)]
doc/protocol.texi: fix missed application reference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agogeneral.texi: fix project reference
Michael Niedermayer [Fri, 13 Jul 2012 15:16:13 +0000 (17:16 +0200)]
general.texi: fix project reference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomatroskaenc: switch to av_assert
Michael Niedermayer [Fri, 13 Jul 2012 15:03:57 +0000 (17:03 +0200)]
matroskaenc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffmpeg: fix type of av_log() argument
Michael Niedermayer [Fri, 13 Jul 2012 14:24:32 +0000 (16:24 +0200)]
ffmpeg: fix type of av_log() argument

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agobuild: Fix APE tag dependencies
Diego Biurrun [Tue, 10 Jul 2012 16:38:46 +0000 (18:38 +0200)]
build: Fix APE tag dependencies

11 years agoMS Expression Encoder Screen decoder
Kostya Shishkov [Sat, 7 Jul 2012 11:21:52 +0000 (13:21 +0200)]
MS Expression Encoder Screen decoder

11 years agolavc: fix ff_alloc_packet()
Paul B Mahol [Fri, 13 Jul 2012 01:09:43 +0000 (01:09 +0000)]
lavc: fix ff_alloc_packet()

Regression introduced in 740b9ff44.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agobuild_system: mark libfdk as non GPL compatible until the situation is clarified...
Michael Niedermayer [Thu, 12 Jul 2012 22:51:01 +0000 (00:51 +0200)]
build_system: mark libfdk as non GPL compatible until the situation is clarified by someone qualified.

The license fee text may be interpreted as a additional restriction in the GPL sense.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 12 Jul 2012 21:53:48 +0000 (23:53 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  build: Fix Ogg demuxer dependencies
  build: Fix FLAC demuxer dependencies
  flac: Move flac functions shared between libraries to flac common code
  build: Fix CAF demuxer dependencies
  build: Fix MP2 muxer dependencies
  build: Add missing build rules for the ISMV muxer
  configure: Drop redundant mxf_d10 test dependency declaration
  Support AAC encoding via the external library fdk-aac
  libavcodec: Add more AAC profiles
  dct/fft-test: use a replacement getopt() if the system has none present.

Conflicts:
Changelog
libavcodec/Makefile
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolclenc: switch to av_assert
Michael Niedermayer [Thu, 12 Jul 2012 21:18:48 +0000 (23:18 +0200)]
lclenc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomxfenc: switch to av_assert
Michael Niedermayer [Thu, 12 Jul 2012 21:16:24 +0000 (23:16 +0200)]
mxfenc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolibfdk-aac: Allow setting the encoder bandwidth/cutoff frequency
Martin Storsjö [Thu, 12 Jul 2012 18:19:08 +0000 (21:19 +0300)]
libfdk-aac: Allow setting the encoder bandwidth/cutoff frequency

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoav_samples_copy: support overlapping copies
Michael Niedermayer [Thu, 12 Jul 2012 19:36:22 +0000 (21:36 +0200)]
av_samples_copy: support overlapping copies

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomp3dec: parse initial silence padding information from lame tag
Michael Niedermayer [Wed, 4 Jul 2012 20:01:46 +0000 (22:01 +0200)]
mp3dec: parse initial silence padding information from lame tag

And pass the information on to the lavf core.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavf: inject sample skip side data when requested by the demuxer
Michael Niedermayer [Wed, 4 Jul 2012 20:00:50 +0000 (22:00 +0200)]
lavf: inject sample skip side data when requested by the demuxer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoadd output for frame timestamps
Robert Krüger [Thu, 12 Jul 2012 08:24:59 +0000 (10:24 +0200)]
add output for frame timestamps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoexr: rle decompression
Paul B Mahol [Wed, 11 Jul 2012 23:33:34 +0000 (23:33 +0000)]
exr: rle decompression

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoconfigure: produce useful uninstalled pc files.
Nicolas George [Thu, 10 May 2012 07:53:36 +0000 (09:53 +0200)]
configure: produce useful uninstalled pc files.

The old files were scattered in several directories,
with an unusual name, but dependencies to the usual name,
and relative paths.

The new files are regrouped in a singled directory
(doc/examples/pc-uninstalled) with their usual name
and more absolute paths.

With this change, it becomes possible to compile the examples
with the ffmpeg build tree by setting the environment variable:
PKG_CONFIG_PATH=pc-uninstalled

11 years agobuild: Fix Ogg demuxer dependencies
Diego Biurrun [Tue, 10 Jul 2012 16:42:56 +0000 (18:42 +0200)]
build: Fix Ogg demuxer dependencies

11 years agobuild: Fix FLAC demuxer dependencies
Diego Biurrun [Tue, 10 Jul 2012 16:42:34 +0000 (18:42 +0200)]
build: Fix FLAC demuxer dependencies

11 years agoflac: Move flac functions shared between libraries to flac common code
Diego Biurrun [Tue, 10 Jul 2012 16:32:41 +0000 (18:32 +0200)]
flac: Move flac functions shared between libraries to flac common code

This fixes a number of flac-related build dependencies.

11 years agobuild: Fix CAF demuxer dependencies
Diego Biurrun [Tue, 10 Jul 2012 16:42:13 +0000 (18:42 +0200)]
build: Fix CAF demuxer dependencies

11 years agobuild: Fix MP2 muxer dependencies
Diego Biurrun [Tue, 10 Jul 2012 16:39:23 +0000 (18:39 +0200)]
build: Fix MP2 muxer dependencies

11 years agobuild: Add missing build rules for the ISMV muxer
Diego Biurrun [Tue, 10 Jul 2012 16:21:45 +0000 (18:21 +0200)]
build: Add missing build rules for the ISMV muxer

11 years agoconfigure: Drop redundant mxf_d10 test dependency declaration
Diego Biurrun [Tue, 10 Jul 2012 20:17:26 +0000 (22:17 +0200)]
configure: Drop redundant mxf_d10 test dependency declaration

The mxf_d10 test depends on avconv, which depends on avfilter, so there
is no need to declare an avfilter dependency for the mxf_d10 test.

11 years agoSupport AAC encoding via the external library fdk-aac
Martin Storsjö [Thu, 28 Jun 2012 13:46:24 +0000 (16:46 +0300)]
Support AAC encoding via the external library fdk-aac

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agolibavcodec: Add more AAC profiles
Martin Storsjö [Fri, 29 Jun 2012 07:52:18 +0000 (10:52 +0300)]
libavcodec: Add more AAC profiles

The numerical values of the profiles are the MPEG4 Audio Object
Type values, minus one.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoexr: cache some values
Paul B Mahol [Wed, 11 Jul 2012 20:40:23 +0000 (20:40 +0000)]
exr: cache some values

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agodca: map xxch side channels to AV_CH_SIDE_LEFT/RIGHT instead of REAR.
Hendrik Leppkes [Sun, 8 Jul 2012 18:11:27 +0000 (20:11 +0200)]
dca: map xxch side channels to AV_CH_SIDE_LEFT/RIGHT instead of REAR.

This fixes decoding of certain 7.1 DTS-HD HRA files, as well as matches the spec better.
Table 6-22 in the DTS spec labels the two channels "Left/Right surround on side", and not rear.

Reviewed-by: Benjamin Larsson <benjamin@southpole.se>
Reviewed-by: Nick Brereton <nick@nbrereton.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 11 Jul 2012 21:56:02 +0000 (23:56 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: Check for the math function rint
  TechSmith Screen Codec 2 decoder
  rtsp: Add listen mode
  rtsp: Make rtsp_open_transport_ctx() non-static
  rtsp: Move rtsp_read_close
  rtsp: Parse the mode=receive/record parameter in transport lines

Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/version.h
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agovorbisdec: switch to av_assert
Michael Niedermayer [Wed, 11 Jul 2012 21:24:23 +0000 (23:24 +0200)]
vorbisdec: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoavidec: switch to av_assert
Michael Niedermayer [Wed, 11 Jul 2012 20:13:24 +0000 (22:13 +0200)]
avidec: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoexr: zip decompression
Paul B Mahol [Sun, 8 Jul 2012 00:04:46 +0000 (00:04 +0000)]
exr: zip decompression

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoexr: remove dead assigment
Paul B Mahol [Wed, 11 Jul 2012 20:43:37 +0000 (20:43 +0000)]
exr: remove dead assigment

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agodct/fft-test: use a replacement getopt() if the system has none present.
Ronald S. Bultje [Wed, 4 Jul 2012 03:14:09 +0000 (20:14 -0700)]
dct/fft-test: use a replacement getopt() if the system has none present.

This allows compiling and running these tests on systems lacking a built-
in version of getopt(), such as MSVC.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoconfigure: Check for the math function rint
Ronald S. Bultje [Tue, 26 Jun 2012 12:05:28 +0000 (15:05 +0300)]
configure: Check for the math function rint

Add a fallback implementation if it doesn't exist.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoTechSmith Screen Codec 2 decoder
Kostya Shishkov [Sun, 8 Jul 2012 17:51:08 +0000 (19:51 +0200)]
TechSmith Screen Codec 2 decoder

12 years agoreplace all __volatile__ by volatile
Michael Niedermayer [Wed, 11 Jul 2012 01:50:34 +0000 (03:50 +0200)]
replace all __volatile__ by volatile

__volatile__ can cause problems with some compilers and volatile is a standard keyword.

Found-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavf/mxfenc: fix dnxhd codec uls and aspect ratio
Matthieu Bouron [Mon, 9 Jul 2012 17:29:42 +0000 (19:29 +0200)]
lavf/mxfenc: fix dnxhd codec uls and aspect ratio

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotiffenc: use av_fast_padded_malloc(z)
Paul B Mahol [Tue, 10 Jul 2012 03:01:19 +0000 (03:01 +0000)]
tiffenc: use av_fast_padded_malloc(z)

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agolavc: add av_fast_padded_mallocz
Paul B Mahol [Tue, 10 Jul 2012 03:49:44 +0000 (03:49 +0000)]
lavc: add av_fast_padded_mallocz

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotiffenc: add .init
Paul B Mahol [Tue, 10 Jul 2012 02:40:39 +0000 (02:40 +0000)]
tiffenc: add .init

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoparseutils: ignore digits below the microsecond.
Nicolas George [Tue, 10 Jul 2012 17:03:12 +0000 (19:03 +0200)]
parseutils: ignore digits below the microsecond.

Accept 1.1234567 as simply 1.123456 instead of rejecting it.
The rounding is towards 0, which is acceptable and much simpler.

12 years agortsp: Add listen mode
Jordi Ortiz [Tue, 10 Jul 2012 17:36:11 +0000 (19:36 +0200)]
rtsp: Add listen mode

This makes the RTSP demuxer act as a server, listening for an
incoming connection.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 10 Jul 2012 18:51:51 +0000 (20:51 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mss1: fix decoding masked regions in interframes
  mxfdec: fix off by one error.
  mxfdec: only parse next partition pack if parsing forward
  mxfdec: let pkt->pts = mxf->current_edit_unit if intra-only
  mxfdec: fix frame height vs field height confusion
  mxfdec: Add intra_only flag to MXFTrack
  mxfdec: fix Avid AirSpeed files being misinterpreted as OP1a
  mxfdec: truncate packets that extend past the next edit unit
  mxfdec: set pixel format for cdci picture formats
  mxfdec: detect uncomp pictures using essence container ul
  mxfdec: set track edit rate num/den in expected order
  x86/cpu: implement get/set_eflags using intrinsics
  x86/cpu: implement support for cpuid through intrinsics
  x86/cpu: implement support for xgetbv through intrinsics
  lavu: use intrinsics for emms on systems lacking inline asm support
  mem: Don't abort on av_malloc(0) in debug mode

Conflicts:
configure
libavformat/mxf.h
libavformat/mxfdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agox86: cpu: clean up check for cpuid instruction support
Mans Rullgard [Sun, 24 Jun 2012 11:29:28 +0000 (12:29 +0100)]
x86: cpu: clean up check for cpuid instruction support

This adds macros for accessing the EFLAGS register and uses
these instead of coding the entire check in inline asm.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: Change the rdtsc check to a linker check
Diego Biurrun [Sun, 8 Jul 2012 23:24:37 +0000 (01:24 +0200)]
configure: Change the rdtsc check to a linker check

A compile-only test could succeed with an implicit function declaration.
Also move the check to the x86 section; rdtsc is x86-only.

12 years agortsp: Make rtsp_open_transport_ctx() non-static
Jordi Ortiz [Tue, 10 Jul 2012 17:25:04 +0000 (19:25 +0200)]
rtsp: Make rtsp_open_transport_ctx() non-static

This is required for the upcoming RTSP listen mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortsp: Move rtsp_read_close
Jordi Ortiz [Wed, 4 Jul 2012 20:13:40 +0000 (22:13 +0200)]
rtsp: Move rtsp_read_close

This avoids having to add forward declarations in the following
RTSP listen mode commit.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortsp: Parse the mode=receive/record parameter in transport lines
Jordi Ortiz [Tue, 10 Jul 2012 17:21:58 +0000 (19:21 +0200)]
rtsp: Parse the mode=receive/record parameter in transport lines

We need to support the nonstandard mode=receive, for compatibility
with older libavformat clients.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agompeg4videoenc: use av_assert
Michael Niedermayer [Tue, 10 Jul 2012 17:37:53 +0000 (19:37 +0200)]
mpeg4videoenc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agompeg4videodec: use av_assert
Michael Niedermayer [Tue, 10 Jul 2012 17:37:37 +0000 (19:37 +0200)]
mpeg4videodec: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodpx: invalid aspect ratio is 0/1, not 0/0.
Nicolas George [Mon, 9 Jul 2012 07:13:21 +0000 (09:13 +0200)]
dpx: invalid aspect ratio is 0/1, not 0/0.

12 years agoSet default ffv1 coder to -1.
Carl Eugen Hoyos [Tue, 10 Jul 2012 12:29:10 +0000 (14:29 +0200)]
Set default ffv1 coder to -1.

Autoselect coder 1 instead of default coder if bits_per_raw_sample > 8.

Fixes ticket #1519.

12 years agoCosmetics: Return AVERROR_INVALIDDATA from ffv1 encoder initialisation if invalid...
Carl Eugen Hoyos [Tue, 10 Jul 2012 12:24:47 +0000 (14:24 +0200)]
Cosmetics: Return AVERROR_INVALIDDATA from ffv1 encoder initialisation if invalid data was provided.

12 years agoCosmetics: Move ffv1 encoder initialisation code.
Carl Eugen Hoyos [Tue, 10 Jul 2012 12:21:29 +0000 (14:21 +0200)]
Cosmetics: Move ffv1 encoder initialisation code.

12 years agodsputil: turn assert into if() as its possible to trigger with ffv1
Michael Niedermayer [Tue, 10 Jul 2012 12:21:06 +0000 (14:21 +0200)]
dsputil: turn assert into if() as its possible to trigger with ffv1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomss1: fix decoding masked regions in interframes
Kostya Shishkov [Tue, 10 Jul 2012 11:38:56 +0000 (13:38 +0200)]
mss1: fix decoding masked regions in interframes

Spotted by Alberto Delmás

12 years agomxfdec: fix off by one error.
Michael Niedermayer [Mon, 26 Mar 2012 13:05:02 +0000 (15:05 +0200)]
mxfdec: fix off by one error.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: only parse next partition pack if parsing forward
Tomas Härdin [Tue, 20 Mar 2012 10:03:48 +0000 (11:03 +0100)]
mxfdec: only parse next partition pack if parsing forward

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: let pkt->pts = mxf->current_edit_unit if intra-only
Tomas Härdin [Wed, 7 Mar 2012 09:03:16 +0000 (10:03 +0100)]
mxfdec: let pkt->pts = mxf->current_edit_unit if intra-only

We cannot do this in general since we could be reading
a file with B-frames while lacking an index.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: fix frame height vs field height confusion
Joseph Artsimovich [Tue, 7 Feb 2012 10:48:43 +0000 (10:48 +0000)]
mxfdec: fix frame height vs field height confusion

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Reveiwed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: Add intra_only flag to MXFTrack
Tomas Härdin [Wed, 7 Mar 2012 09:52:39 +0000 (10:52 +0100)]
mxfdec: Add intra_only flag to MXFTrack

This allows future assumptions to be made without affecting non-intra files.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: fix Avid AirSpeed files being misinterpreted as OP1a
Tomas Härdin [Fri, 2 Mar 2012 10:33:28 +0000 (11:33 +0100)]
mxfdec: fix Avid AirSpeed files being misinterpreted as OP1a

The "ECs != 1 -> OP1a" assumption was wrong. Luckily, the file
that triggered that behavior had two ECs, not zero. Hence
distinguishing between them is simple in this case.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: truncate packets that extend past the next edit unit
Tomas Härdin [Fri, 2 Mar 2012 10:16:10 +0000 (11:16 +0100)]
mxfdec: truncate packets that extend past the next edit unit

This fixes rare cases where OPAtom may be treated
as OP1a, causing all essence to be read into RAM.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: set pixel format for cdci picture formats
Philip de Nier [Tue, 28 Feb 2012 14:16:39 +0000 (14:16 +0000)]
mxfdec: set pixel format for cdci picture formats

The properties of the CDCI Descriptor are insufficient to specify
the pixel format for uncompressed picture data. SMPTE 377-1 and
RP224v10 have defined a set of picture coding labels to indicate what
formatting was used.

This patch uses 2 labels to detect UYVY422 or YUYV422 pixel formats.

It defaults to UYVY422 for 8-bit 4:2:2 pictures to support files
that were created before the coding labels were introduced ~2008

The codec pix_fmt default was changed from 0 (PIX_FMT_YUV420P) to
-1 (PIX_FMT_NONE)

Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomxfdec: detect uncomp pictures using essence container ul
Philip de Nier [Tue, 28 Feb 2012 14:16:38 +0000 (14:16 +0000)]
mxfdec: detect uncomp pictures using essence container ul

This supports detection of uncompressed picture in files that
didn't include a Picture Coding Label. The lables weren't
available until SMPTE 377-1 and RP224v10

Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agomxfdec: set track edit rate num/den in expected order
Philip de Nier [Tue, 28 Feb 2012 14:16:36 +0000 (14:16 +0000)]
mxfdec: set track edit rate num/den in expected order

This matches the order used for the index table edit rate.

Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agox86/cpu: implement get/set_eflags using intrinsics
Ronald S. Bultje [Mon, 9 Jul 2012 00:21:28 +0000 (02:21 +0200)]
x86/cpu: implement get/set_eflags using intrinsics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agox86/cpu: implement support for cpuid through intrinsics
Ronald S. Bultje [Mon, 9 Jul 2012 00:21:27 +0000 (02:21 +0200)]
x86/cpu: implement support for cpuid through intrinsics

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agox86/cpu: implement support for xgetbv through intrinsics
Ronald S. Bultje [Mon, 9 Jul 2012 00:21:26 +0000 (02:21 +0200)]
x86/cpu: implement support for xgetbv through intrinsics

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavu: use intrinsics for emms on systems lacking inline asm support
Ronald S. Bultje [Mon, 9 Jul 2012 00:21:25 +0000 (02:21 +0200)]
lavu: use intrinsics for emms on systems lacking inline asm support

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoRecognize yuv10 image files as v210x.
Carl Eugen Hoyos [Tue, 10 Jul 2012 11:27:16 +0000 (13:27 +0200)]
Recognize yuv10 image files as v210x.

Reviewed-by: Kieran Kunhya
12 years agoDefine snow .pix_fmts to allow colour space auto-selection.
Carl Eugen Hoyos [Tue, 10 Jul 2012 11:22:01 +0000 (13:22 +0200)]
Define snow .pix_fmts to allow colour space auto-selection.

12 years agomem: Don't abort on av_malloc(0) in debug mode
Martin Storsjö [Wed, 11 Apr 2012 07:33:43 +0000 (10:33 +0300)]
mem: Don't abort on av_malloc(0) in debug mode

This makes the behaviour consistent between debug and release mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoexr: return proper error code instead of -1
Paul B Mahol [Tue, 10 Jul 2012 01:27:40 +0000 (01:27 +0000)]
exr: return proper error code instead of -1

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoexr: use buf_size instead of recalculating same value
Paul B Mahol [Tue, 10 Jul 2012 01:20:13 +0000 (01:20 +0000)]
exr: use buf_size instead of recalculating same value

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoh264/decode_scaling_matrices: fix coding order of 8x8 matrixes.
Michael Niedermayer [Mon, 9 Jul 2012 23:04:36 +0000 (01:04 +0200)]
h264/decode_scaling_matrices: fix coding order of 8x8 matrixes.

This fixes decoding of PPCV444I3_Thomson_A.bits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: 12 and 14 bit support
Michael Niedermayer [Wed, 4 Jul 2012 23:35:02 +0000 (01:35 +0200)]
h264: 12 and 14 bit support

This works with I, P and B frames
CAVLC and CABAC

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264dsp: 12 and 14 bit support
Michael Niedermayer [Wed, 4 Jul 2012 23:34:12 +0000 (01:34 +0200)]
h264dsp: 12 and 14 bit support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264pred: 12 and 14 bit support
Michael Niedermayer [Wed, 4 Jul 2012 23:33:51 +0000 (01:33 +0200)]
h264pred: 12 and 14 bit support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264idct: 12 and 14 bit support
Michael Niedermayer [Wed, 4 Jul 2012 23:33:18 +0000 (01:33 +0200)]
h264idct: 12 and 14 bit support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: limit 10bpp MC pading trick to 10bpp
Michael Niedermayer [Thu, 5 Jul 2012 17:13:40 +0000 (19:13 +0200)]
h264: limit 10bpp MC pading trick to 10bpp

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodsputil: extend things to 12 and 14 bits
Michael Niedermayer [Wed, 4 Jul 2012 23:32:13 +0000 (01:32 +0200)]
dsputil: extend things to 12 and 14 bits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agofate: add test for paf demuxer
Paul B Mahol [Sun, 8 Jul 2012 20:34:19 +0000 (20:34 +0000)]
fate: add test for paf demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agofate: add test for paf video decoder
Paul B Mahol [Sun, 8 Jul 2012 20:18:27 +0000 (20:18 +0000)]
fate: add test for paf video decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agofate: add test for paf audio decoder
Paul B Mahol [Sun, 8 Jul 2012 20:16:12 +0000 (20:16 +0000)]
fate: add test for paf audio decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agolavfi/movie: reindent after the previous patch
Steven Robertson [Sat, 7 Jul 2012 05:42:29 +0000 (22:42 -0700)]
lavfi/movie: reindent after the previous patch

Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years agolavfi/movie: flush decoder frames on EOF
Steven Robertson [Sat, 7 Jul 2012 05:41:28 +0000 (22:41 -0700)]
lavfi/movie: flush decoder frames on EOF

movie currently forwards EOF (or begins looping) immediately upon
reaching the last packet in the input stream, which can leave frames in
the decoder. This change first tries to read any remaining packets from
the decoder before forwarding EOF.

Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years agolavfi/buffersink: restore possibility to pass opaque data
Stefano Sabatini [Thu, 5 Jul 2012 23:06:20 +0000 (01:06 +0200)]
lavfi/buffersink: restore possibility to pass opaque data

Use the init_opaque callback for the purpose.

Fix regression introduced in a5e8c41c28f. In particular, fix lavfi
device in case a conversion to the supported (packed) formats is needed.