]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agompeg12dec: also print progressive seq and chroma format
Michael Niedermayer [Sun, 18 Aug 2013 11:55:57 +0000 (13:55 +0200)]
mpeg12dec: also print progressive seq and chroma format

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agofate: add ffv1.0 test
Michael Niedermayer [Sun, 18 Aug 2013 10:43:11 +0000 (12:43 +0200)]
fate: add ffv1.0 test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 18 Aug 2013 10:01:08 +0000 (12:01 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Indicate that negative timestamps are supported

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'c34a96a5ddfa390ce2a352eca79190766c9056d4'
Michael Niedermayer [Sun, 18 Aug 2013 09:50:47 +0000 (11:50 +0200)]
Merge commit 'c34a96a5ddfa390ce2a352eca79190766c9056d4'

* commit 'c34a96a5ddfa390ce2a352eca79190766c9056d4':
  dxa: fix decoding of first I-frame by separating I/P-frame decoding

Conflicts:
libavcodec/dxa.c

See: 186e47ef6d7d90bfd8b16e77cfa5e7aeb2a497c0
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/matroskadec: check out_samplerate before using it in av_rescale()
Michael Niedermayer [Sun, 18 Aug 2013 00:20:54 +0000 (02:20 +0200)]
avformat/matroskadec: check out_samplerate before using it in av_rescale()

Prevent assertion failure with damaged input

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomatroskadec: Improve TTA duration calculation
James Almer [Sat, 17 Aug 2013 17:48:33 +0000 (14:48 -0300)]
matroskadec: Improve TTA duration calculation

Calculate the duration as accurately as possible to improve decoding of samples
where the last frame is smaller than the rest.

Example:
Take lossless-audio/luckynight-partial.tak from the FATE suit and convert it
to TTA muxed into matroska:

ffmpeg -i $(SAMPLES)/lossless-audio/luckynight-partial.tak -c:a tta lucky.mka

The framemd5 output for lucky.mka without this patch:

0,          0,          0,    46080,   184320, 7c3751ddd571d2903c3cf0ab4b3e3d0a
0,      46080,      46080,    46080,   184320, 6b70c782ba1da3f933fde2daa4f96b73
0,      92160,      92160,    46080,   184320, dcf70d89c54b9a4f0b302d4ec4fb302d
0,     138240,     138240,    46080,   184320, 48713ca38b388d2ea4abf5b86ed1226f
0,     184320,     184320,    46080,   184320, 12188a23648e7ebfb07cd6fe9197b2ea
0,     230400,     230400,    46080,   184320, 49653ab8186a5d4a044ed284671a26e0
0,     276480,     276480,    46080,   184320, 5e82c6a7fe58c7ea612c03a0a2927dd4
0,     322560,     322560,    46080,   184320, 83dc449dbd9eab5f2e8ad2b4403d6a21
0,     368640,     368640,    46080,   184320, bdd6b92c23d30978d4e802d305b0fc49

With this patch:

0,          0,          0,    46080,   184320, 7c3751ddd571d2903c3cf0ab4b3e3d0a
0,      46080,      46080,    46080,   184320, 6b70c782ba1da3f933fde2daa4f96b73
0,      92160,      92160,    46080,   184320, dcf70d89c54b9a4f0b302d4ec4fb302d
0,     138240,     138240,    46080,   184320, 48713ca38b388d2ea4abf5b86ed1226f
0,     184320,     184320,    46080,   184320, 12188a23648e7ebfb07cd6fe9197b2ea
0,     230400,     230400,    46080,   184320, 49653ab8186a5d4a044ed284671a26e0
0,     276480,     276480,    46080,   184320, 5e82c6a7fe58c7ea612c03a0a2927dd4
0,     322560,     322560,    46080,   184320, 83dc449dbd9eab5f2e8ad2b4403d6a21
0,     368640,     368640,    46080,   184320, bdd6b92c23d30978d4e802d305b0fc49
0,     414720,     414720,     4230,    16920, b50b440c5bbcecb8e9fbece643447593

The duration without this patch was calculated as 418950000000, which is bigger
than uint32_t and as such stored as 2338172288.
With this patch the duration is correctly calculated as 418950.

Signed-off-by: James Almer <jamrial@gmail.com>
Approved-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agowavpackenc: do not copy samples if they are not available
Paul B Mahol [Sat, 17 Aug 2013 22:25:49 +0000 (22:25 +0000)]
wavpackenc: do not copy samples if they are not available

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavf/matroska: Adding the new SeekPreRoll element
Vignesh Venkatasubramanian [Fri, 16 Aug 2013 18:08:06 +0000 (11:08 -0700)]
lavf/matroska: Adding the new SeekPreRoll element

In order to encapsuate Opus in Matroska, there is a new element
that has been added to the Matroska Spec, SeekPreRoll. It has the
duration in nanoseconds that has to be decoded before every seek.
Spec: http://matroska.org/technical/specs/index.html#SeekPreRoll
Proposal for encapsulateing Opus in Matroska:
http://wiki.xiph.org/MatroskaOpus

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomovenc: Indicate that negative timestamps are supported
Martin Storsjö [Sat, 17 Aug 2013 16:05:53 +0000 (17:05 +0100)]
movenc: Indicate that negative timestamps are supported

The mov/mp4 muxer has support for handling negative timestamps
via edit lists (which customarily is used for handling the 1-frame
delay due to B-frames as well).

Using the muxer's native way of handling it is better than using
the generic offsetting. The generic offsetting is a bit too
crude when e.g. the timebase of one track is 1/fps, where the
edit lists can handle it accurately.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavcodec: fix compilation without vdpau
Michael Niedermayer [Sat, 17 Aug 2013 13:49:59 +0000 (15:49 +0200)]
avcodec: fix compilation without vdpau

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoRevert "Merge commit of 'vdpau: remove old-style decoders'"
Michael Niedermayer [Sat, 17 Aug 2013 13:31:14 +0000 (15:31 +0200)]
Revert "Merge commit of 'vdpau: remove old-style decoders'"

This reverts commit bf36dc50ea448999c8f8c7a35f6139a7040f6275, reversing
changes made to b7fc2693c70fe72936e4ce124c802ac23857c476.

Conflicts:

libavcodec/h264.c

Keeping support for the old VDPAU API has been requested by our VDPAU maintainer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/dxa: Support printing picture debug info
Michael Niedermayer [Sat, 17 Aug 2013 12:30:10 +0000 (14:30 +0200)]
avcodec/dxa: Support printing picture debug info

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavisynth: Support video input from AviSynth 2.5 properly.
Stephen Hutchinson [Fri, 16 Aug 2013 21:29:55 +0000 (17:29 -0400)]
avisynth: Support video input from AviSynth 2.5 properly.

Uses the 2.5 compatibility header included with the variant of
FFMS2 that uses AviSynth's C-interface. A copy of this header is
now provided in compat/avisynth.

avs_get_row_size_p and avs_get_height_p changed between versions
2.5 and 2.6. Since the avisynth_c.h header that avformat uses
assumes AviSynth 2.6, it would cause 2.5 to crash if given any
kind of real video (the Version() function was known to work,
though).

AvxSynth was unaffected by this issue because, despite being based
on AviSynth 2.5.8 and using 2.5.8's interface version number of 3,
it actually uses 2.6's versions of these functions.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodxa: fix decoding of first I-frame by separating I/P-frame decoding
Janne Grunau [Sat, 17 Aug 2013 10:36:36 +0000 (12:36 +0200)]
dxa: fix decoding of first I-frame by separating I/P-frame decoding

5ef7c84 broke decoding for the first keyframe due to an unnecessary
check for a reference frame.

CC: libav-stable@libav.org
11 years agodxa: fix support of decoding all frames even in the absence of references
Michael Niedermayer [Sat, 17 Aug 2013 09:12:47 +0000 (11:12 +0200)]
dxa: fix support of decoding all frames even in the absence of references

The case where decoding should only happen for keyframes and afterwards
(CODEC_FLAG2_SHOW_ALL not set) does not fully work neither before nor
after this

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodxa: only fail with an error about reference frames if the reference frame would...
Michael Niedermayer [Sat, 17 Aug 2013 09:11:45 +0000 (11:11 +0200)]
dxa: only fail with an error about reference frames if the reference frame would be used

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 17 Aug 2013 08:36:19 +0000 (10:36 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  dxa: Make sure the reference frame exists

See: 12eb2fd5394813a6119912b22f5dfc17b4a6b4a0
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'c59967fa7cc5bc2fa06b36c17d2c207240c06b3e'
Michael Niedermayer [Sat, 17 Aug 2013 08:30:38 +0000 (10:30 +0200)]
Merge commit 'c59967fa7cc5bc2fa06b36c17d2c207240c06b3e'

* commit 'c59967fa7cc5bc2fa06b36c17d2c207240c06b3e':
  h261: check the mtype index

Conflicts:
libavcodec/h261dec.c

The right half of the check is impossible to be true and thus replaced by
an assert()

See: ec3cd74f2dab8e3e8234ccb994132b23d3098585
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1: update years in header
Michael Niedermayer [Fri, 16 Aug 2013 23:41:31 +0000 (01:41 +0200)]
ffv1: update years in header

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1enc: propagate error code from write_extradata()
Michael Niedermayer [Fri, 16 Aug 2013 23:38:53 +0000 (01:38 +0200)]
ffv1enc: propagate error code from write_extradata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1enc: check for malloc failure
Michael Niedermayer [Fri, 16 Aug 2013 23:38:32 +0000 (01:38 +0200)]
ffv1enc: check for malloc failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavf/tee: add support for bitstream filtering
Stefano Sabatini [Fri, 5 Jul 2013 16:33:30 +0000 (18:33 +0200)]
lavf/tee: add support for bitstream filtering

This allows to apply different bitstream filters to different outputs,
with no need to transcode.

11 years agoavcodec/dirac_dwt: Remove unused ff_spatial_idwt2()
Michael Niedermayer [Fri, 16 Aug 2013 13:56:10 +0000 (15:56 +0200)]
avcodec/dirac_dwt: Remove unused ff_spatial_idwt2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavfilter/vf_mp: remove unused sws related functions
Michael Niedermayer [Fri, 16 Aug 2013 13:55:19 +0000 (15:55 +0200)]
avfilter/vf_mp: remove unused sws related functions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavfilter: remove ff_copy_int*_list
Michael Niedermayer [Fri, 16 Aug 2013 13:35:00 +0000 (15:35 +0200)]
avfilter: remove ff_copy_int*_list

The functions are unused

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoswscale: change ff_dither_8x8_128 dimensions to be consistent with the others
Michael Niedermayer [Fri, 16 Aug 2013 13:01:47 +0000 (15:01 +0200)]
swscale: change ff_dither_8x8_128 dimensions to be consistent with the others

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodxa: Make sure the reference frame exists
Luca Barbato [Wed, 14 Aug 2013 14:51:53 +0000 (16:51 +0200)]
dxa: Make sure the reference frame exists

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agoh261: check the mtype index
Luca Barbato [Wed, 14 Aug 2013 14:57:21 +0000 (16:57 +0200)]
h261: check the mtype index

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agolavfi/transpose: call av_frame_copy_props()
Paul B Mahol [Wed, 14 Aug 2013 21:34:27 +0000 (21:34 +0000)]
lavfi/transpose: call av_frame_copy_props()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/transpose: support slice threading
Paul B Mahol [Wed, 14 Aug 2013 19:01:06 +0000 (19:01 +0000)]
lavfi/transpose: support slice threading

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/tile: make color of blank/unused area configurable
Paul B Mahol [Wed, 14 Aug 2013 21:51:27 +0000 (21:51 +0000)]
lavfi/tile: make color of blank/unused area configurable

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 16 Aug 2013 12:21:34 +0000 (14:21 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  altivec: perform an explicit unaligned load

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '9d86bfc259ae9ba7a76067ec931ff20fbb86ea2a'
Michael Niedermayer [Fri, 16 Aug 2013 12:04:57 +0000 (14:04 +0200)]
Merge commit '9d86bfc259ae9ba7a76067ec931ff20fbb86ea2a'

* commit '9d86bfc259ae9ba7a76067ec931ff20fbb86ea2a':
  hlsenc: Don't reset the number variable when wrapping

Conflicts:
libavformat/hlsenc.c

See: 75b9fb27f516f9db7995ab2c2abb83e25cae5813
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '09c93b1b957f2049ea5fd8fb0e6f4d82680172f2'
Michael Niedermayer [Fri, 16 Aug 2013 11:54:38 +0000 (13:54 +0200)]
Merge commit '09c93b1b957f2049ea5fd8fb0e6f4d82680172f2'

* commit '09c93b1b957f2049ea5fd8fb0e6f4d82680172f2':
  hlsenc: Append the last incomplete segment when closing the output

Conflicts:
libavformat/hlsenc.c

See: 4630dfd1ebb6550f352ea69ce7150aaaba96d413
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'c9031c7c1446a1a63eff7c0bf50d1ee559adf3fb'
Michael Niedermayer [Fri, 16 Aug 2013 11:43:31 +0000 (13:43 +0200)]
Merge commit 'c9031c7c1446a1a63eff7c0bf50d1ee559adf3fb'

* commit 'c9031c7c1446a1a63eff7c0bf50d1ee559adf3fb':
  hlsenc: Add a proper dependency on the mpegts muxer

Conflicts:
libavformat/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '239f55bf3c966782b781338df284f250393b9ed6'
Michael Niedermayer [Fri, 16 Aug 2013 11:37:06 +0000 (13:37 +0200)]
Merge commit '239f55bf3c966782b781338df284f250393b9ed6'

* commit '239f55bf3c966782b781338df284f250393b9ed6':
  vp56data: Move all data tables to the .c file

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'cb214707a6cb0d3272ec0261af6f1f5d8b7dabc7'
Michael Niedermayer [Fri, 16 Aug 2013 11:19:19 +0000 (13:19 +0200)]
Merge commit 'cb214707a6cb0d3272ec0261af6f1f5d8b7dabc7'

* commit 'cb214707a6cb0d3272ec0261af6f1f5d8b7dabc7':
  vp56data: Move all shared enum/struct declarations to common header

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '38f64c03301ac66d7b54b3e4bd2bf6454f9fb2d3'
Michael Niedermayer [Fri, 16 Aug 2013 11:13:58 +0000 (13:13 +0200)]
Merge commit '38f64c03301ac66d7b54b3e4bd2bf6454f9fb2d3'

* commit '38f64c03301ac66d7b54b3e4bd2bf6454f9fb2d3':
  mpeg12decdata.h: Move all tables to the only place they are used

Conflicts:
libavcodec/mpeg12decdata.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'ec6c1b1d832ec3261cc3faf93a18d7b2a84883c6'
Michael Niedermayer [Fri, 16 Aug 2013 11:08:09 +0000 (13:08 +0200)]
Merge commit 'ec6c1b1d832ec3261cc3faf93a18d7b2a84883c6'

* commit 'ec6c1b1d832ec3261cc3faf93a18d7b2a84883c6':
  mpeg12decdata: Remove unused #define

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'c591d4575a6f97fbbe6145304b1ea960e8e81e14'
Michael Niedermayer [Fri, 16 Aug 2013 11:01:37 +0000 (13:01 +0200)]
Merge commit 'c591d4575a6f97fbbe6145304b1ea960e8e81e14'

* commit 'c591d4575a6f97fbbe6145304b1ea960e8e81e14':
  avcodec: Replace local extern declarations for tables with header #includes

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'aa2ba8c99e5708884a56aea9c1d96e014866f8a3'
Michael Niedermayer [Fri, 16 Aug 2013 10:53:24 +0000 (12:53 +0200)]
Merge commit 'aa2ba8c99e5708884a56aea9c1d96e014866f8a3'

* commit 'aa2ba8c99e5708884a56aea9c1d96e014866f8a3':
  swscale: Move extern declarations for tables to swscale_internal.h

Conflicts:
libswscale/output.c
libswscale/swscale_internal.h
libswscale/swscale_unscaled.c
libswscale/utils.c
libswscale/yuv2rgb.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'd258531502b24cb653204fe4f003c8815755bdc4'
Michael Niedermayer [Fri, 16 Aug 2013 10:38:12 +0000 (12:38 +0200)]
Merge commit 'd258531502b24cb653204fe4f003c8815755bdc4'

* commit 'd258531502b24cb653204fe4f003c8815755bdc4':
  swscale: Mark a bunch of tables only used within one file static

Conflicts:
libswscale/swscale_unscaled.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '060ce0c697e261ca2792a7df30dfd1bae6900a4f'
Michael Niedermayer [Fri, 16 Aug 2013 10:31:39 +0000 (12:31 +0200)]
Merge commit '060ce0c697e261ca2792a7df30dfd1bae6900a4f'

* commit '060ce0c697e261ca2792a7df30dfd1bae6900a4f':
  ivi_common: Make some tables only used within the file static

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '4b054a3400f728c54470ee6a1eefe1d82420f6a2'
Michael Niedermayer [Fri, 16 Aug 2013 10:31:11 +0000 (12:31 +0200)]
Merge commit '4b054a3400f728c54470ee6a1eefe1d82420f6a2'

* commit '4b054a3400f728c54470ee6a1eefe1d82420f6a2':
  rtpproto: Check the right feature detection macro

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '163a729725c6eb0081b0af41a7279f7d19aee86e'
Michael Niedermayer [Fri, 16 Aug 2013 10:18:41 +0000 (12:18 +0200)]
Merge commit '163a729725c6eb0081b0af41a7279f7d19aee86e'

* commit '163a729725c6eb0081b0af41a7279f7d19aee86e':
  electronicarts: Let functions always returning the same value return void

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '4908c8ef2706d98022bf27a5c5bca1fe109e7529'
Michael Niedermayer [Fri, 16 Aug 2013 10:14:32 +0000 (12:14 +0200)]
Merge commit '4908c8ef2706d98022bf27a5c5bca1fe109e7529'

* commit '4908c8ef2706d98022bf27a5c5bca1fe109e7529':
  electronicarts: Improve some function/variable names

Conflicts:
libavformat/electronicarts.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'a90cff137b2aca89380b0acad41cd7bb05619ece'
Michael Niedermayer [Fri, 16 Aug 2013 10:08:38 +0000 (12:08 +0200)]
Merge commit 'a90cff137b2aca89380b0acad41cd7bb05619ece'

* commit 'a90cff137b2aca89380b0acad41cd7bb05619ece':
  electronicarts: comment wording fixes

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '288f2ffb57ae9e9eee2748aca26da3aeb3ca6f6c'
Michael Niedermayer [Fri, 16 Aug 2013 10:07:45 +0000 (12:07 +0200)]
Merge commit '288f2ffb57ae9e9eee2748aca26da3aeb3ca6f6c'

* commit '288f2ffb57ae9e9eee2748aca26da3aeb3ca6f6c':
  electronicarts: Remove bogus function documentation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '8747fce91fca6bb8e9936497f2de05c905cf43b5'
Michael Niedermayer [Fri, 16 Aug 2013 10:01:22 +0000 (12:01 +0200)]
Merge commit '8747fce91fca6bb8e9936497f2de05c905cf43b5'

* commit '8747fce91fca6bb8e9936497f2de05c905cf43b5':
  electronicarts: K&R formatting cosmetics

Conflicts:
libavformat/electronicarts.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'e8c0defe1322f0ff281d9bc5eee91fa1b712b6aa'
Michael Niedermayer [Fri, 16 Aug 2013 09:43:26 +0000 (11:43 +0200)]
Merge commit 'e8c0defe1322f0ff281d9bc5eee91fa1b712b6aa'

* commit 'e8c0defe1322f0ff281d9bc5eee91fa1b712b6aa':
  8bps: decode 24bit files correctly as rgb32 on bigendian

Conflicts:
libavcodec/8bps.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoaltivec: perform an explicit unaligned load
Kostya Shishkov [Wed, 14 Aug 2013 19:28:05 +0000 (15:28 -0400)]
altivec: perform an explicit unaligned load

Implicit vector loads on POWER7 hardware can use the VSX
instruction set instead of classic Altivec/VMX. Let's force
a VMX load in this case.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavfilter/vf_scale+aresample: minor simpification
Michael Niedermayer [Fri, 16 Aug 2013 02:25:39 +0000 (04:25 +0200)]
avfilter/vf_scale+aresample: minor simpification

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavfilter/vf_scale: generic swscale option support
Michael Niedermayer [Thu, 15 Aug 2013 20:42:56 +0000 (22:42 +0200)]
avfilter/vf_scale: generic swscale option support

With this all AVOptions from swscale can be set without each needing
changes to vf_scale.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agohlsenc: Don't reset the number variable when wrapping
Carl Eugen Hoyos [Thu, 6 Jun 2013 10:09:38 +0000 (12:09 +0200)]
hlsenc: Don't reset the number variable when wrapping

The counter itself shouldn't be wrapped, since it is used for
determining end_pts for the next segment - only wrap the number
used for the segment file name.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agohlsenc: Append the last incomplete segment when closing the output
Stefano Sabatini [Thu, 15 Aug 2013 09:33:20 +0000 (12:33 +0300)]
hlsenc: Append the last incomplete segment when closing the output

Also avoid comparing NOPTS values.

Bug-id: 551
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agohlsenc: Add a proper dependency on the mpegts muxer
Martin Storsjö [Thu, 15 Aug 2013 13:09:27 +0000 (16:09 +0300)]
hlsenc: Add a proper dependency on the mpegts muxer

The hls muxer itself doesn't have any direct (object file level)
dependencies on mpegtsenc.o, and including that object file
directly doesn't ensure that it is registered so that the muxer
actually is accessible.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agosws: add dither enum
Michael Niedermayer [Wed, 14 Aug 2013 15:19:32 +0000 (17:19 +0200)]
sws: add dither enum

This allows specifying more dither algorithms without using up flags and
without ambiguities.

Also initialize the new field based on the flags and use it.
Note, improving the logic of the checks is left to subsequent
commits, this here only switches from flags to enum.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoswscale_unscaled: make dither_scale static, its not used elsewhere and has no prefix
Michael Niedermayer [Thu, 15 Aug 2013 18:46:57 +0000 (20:46 +0200)]
swscale_unscaled: make dither_scale static, its not used elsewhere and has no prefix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/riff: add DM4V FourCC
Piotr Bandurski [Thu, 15 Aug 2013 12:12:47 +0000 (14:12 +0200)]
avformat/riff: add DM4V FourCC

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agovp56data: Move all data tables to the .c file
Diego Biurrun [Wed, 14 Aug 2013 16:49:14 +0000 (18:49 +0200)]
vp56data: Move all data tables to the .c file

11 years agovp56data: Move all shared enum/struct declarations to common header
Diego Biurrun [Wed, 14 Aug 2013 16:39:37 +0000 (18:39 +0200)]
vp56data: Move all shared enum/struct declarations to common header

11 years agompeg12decdata.h: Move all tables to the only place they are used
Diego Biurrun [Wed, 14 Aug 2013 16:19:46 +0000 (18:19 +0200)]
mpeg12decdata.h: Move all tables to the only place they are used

11 years agompeg12decdata: Remove unused #define
Diego Biurrun [Wed, 14 Aug 2013 16:57:08 +0000 (18:57 +0200)]
mpeg12decdata: Remove unused #define

11 years agoavcodec: Replace local extern declarations for tables with header #includes
Diego Biurrun [Thu, 15 Aug 2013 10:58:41 +0000 (12:58 +0200)]
avcodec: Replace local extern declarations for tables with header #includes

11 years agoswscale: Move extern declarations for tables to swscale_internal.h
Diego Biurrun [Thu, 15 Aug 2013 11:38:12 +0000 (13:38 +0200)]
swscale: Move extern declarations for tables to swscale_internal.h

Also add missing ff_ prefixes where necessary.

11 years agoswscale: Mark a bunch of tables only used within one file static
Diego Biurrun [Thu, 15 Aug 2013 11:29:01 +0000 (13:29 +0200)]
swscale: Mark a bunch of tables only used within one file static

11 years agoivi_common: Make some tables only used within the file static
Diego Biurrun [Thu, 15 Aug 2013 11:13:01 +0000 (13:13 +0200)]
ivi_common: Make some tables only used within the file static

11 years agortpproto: Check the right feature detection macro
Martin Storsjö [Thu, 15 Aug 2013 07:36:20 +0000 (10:36 +0300)]
rtpproto: Check the right feature detection macro

IPPROTO_IPV6 is unrelated here (it's only used in udp.c for
multicast sockopts), check for support for the sockaddr_in6
struct itself.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavcodec/ffv1enc: bump minor_version for the chroma_plane fix
Michael Niedermayer [Thu, 15 Aug 2013 11:49:21 +0000 (13:49 +0200)]
avcodec/ffv1enc: bump minor_version for the chroma_plane fix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/ffv1enc: fix chroma_plane for rgb/rgba
Michael Niedermayer [Thu, 15 Aug 2013 11:26:50 +0000 (13:26 +0200)]
avcodec/ffv1enc: fix chroma_plane for rgb/rgba

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1: fix plane_count at version 1.4
Michael Niedermayer [Thu, 15 Aug 2013 11:03:32 +0000 (13:03 +0200)]
ffv1: fix plane_count at version 1.4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffv1dec: support printing information about the global header
Michael Niedermayer [Thu, 15 Aug 2013 10:52:41 +0000 (12:52 +0200)]
ffv1dec: support printing information about the global header

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoelectronicarts: Let functions always returning the same value return void
Diego Biurrun [Wed, 14 Aug 2013 16:04:36 +0000 (18:04 +0200)]
electronicarts: Let functions always returning the same value return void

11 years agoelectronicarts: Improve some function/variable names
Diego Biurrun [Wed, 14 Aug 2013 15:06:41 +0000 (17:06 +0200)]
electronicarts: Improve some function/variable names

11 years agoelectronicarts: comment wording fixes
Diego Biurrun [Wed, 14 Aug 2013 14:53:08 +0000 (16:53 +0200)]
electronicarts: comment wording fixes

11 years agoelectronicarts: Remove bogus function documentation
Diego Biurrun [Wed, 14 Aug 2013 15:54:40 +0000 (17:54 +0200)]
electronicarts: Remove bogus function documentation

11 years agoelectronicarts: K&R formatting cosmetics
Diego Biurrun [Wed, 14 Aug 2013 14:45:06 +0000 (16:45 +0200)]
electronicarts: K&R formatting cosmetics

11 years ago8bps: decode 24bit files correctly as rgb32 on bigendian
Janne Grunau [Fri, 19 Jul 2013 11:51:51 +0000 (13:51 +0200)]
8bps: decode 24bit files correctly as rgb32 on bigendian

11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 15 Aug 2013 09:29:02 +0000 (11:29 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtpproto: Check for the right feature when reading a sockaddr_in6

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agortpproto: Check for the right feature when reading a sockaddr_in6
Dave Yeo [Wed, 14 Aug 2013 22:22:13 +0000 (15:22 -0700)]
rtpproto: Check for the right feature when reading a sockaddr_in6

Some systems, such as OS/2, define AF_INET6 without a full
implementation.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agowavpackenc: simplify "sign = ((sample) < 0) ? 1 : 0;"
Michael Niedermayer [Wed, 14 Aug 2013 17:20:13 +0000 (19:20 +0200)]
wavpackenc: simplify "sign = ((sample) < 0) ? 1 : 0;"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/lzwenc: change asserts to av_asserts
Michael Niedermayer [Wed, 14 Aug 2013 20:56:56 +0000 (22:56 +0200)]
avcodec/lzwenc: change asserts to av_asserts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/gif: use the whole allocated buffer
Michael Niedermayer [Wed, 14 Aug 2013 20:51:06 +0000 (22:51 +0200)]
avcodec/gif: use the whole allocated buffer

Fixes some gif encoding failures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/lzwenc: Add 1 additional bit of padding for gif
Michael Niedermayer [Wed, 14 Aug 2013 20:38:55 +0000 (22:38 +0200)]
avcodec/lzwenc: Add 1 additional bit of padding for gif

This fixes issues with gimp reading animated gifs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/gif: move BITSTREAM_WRITER_LE up
Michael Niedermayer [Wed, 14 Aug 2013 20:34:18 +0000 (22:34 +0200)]
avcodec/gif: move BITSTREAM_WRITER_LE up

This prevents issues in case any header #includes put_bits.h

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavf/wavdec: Fix seeking in files with unaligned offsets
Alexander Strasser [Tue, 13 Aug 2013 16:36:21 +0000 (18:36 +0200)]
lavf/wavdec: Fix seeking in files with unaligned offsets

A file with a prepended ID3 tag of an uneven length was found
in the wild.

Check if the wav data starts at an uneven offset and use that
information to correct the seeking calculation in wav_seek_tag,
which used to only seek to even byte positions.

Regression since ac87eaf856e0fb51917266b899bb15d19b907baf

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
11 years agoavcodec/mjpegdec: print a message when there was just a single field and no frame
Michael Niedermayer [Wed, 14 Aug 2013 16:51:13 +0000 (18:51 +0200)]
avcodec/mjpegdec: print a message when there was just a single field and no frame

Fixes ticket1915

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoWavPack encoder
Paul B Mahol [Tue, 22 Jan 2013 20:05:44 +0000 (20:05 +0000)]
WavPack encoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 14 Aug 2013 10:42:37 +0000 (12:42 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  sdp: Add an option for sending RTCP packets to the source of the last packets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '6b58e11a8331690ec32e9869db89ae10c54614e9'
Michael Niedermayer [Wed, 14 Aug 2013 10:36:07 +0000 (12:36 +0200)]
Merge commit '6b58e11a8331690ec32e9869db89ae10c54614e9'

* commit '6b58e11a8331690ec32e9869db89ae10c54614e9':
  rtpproto: Add an option for writing return packets to the address of the last received packets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '2427ac6ccd868811d1fe9df7c64c50ca58abe6f6'
Michael Niedermayer [Wed, 14 Aug 2013 10:30:35 +0000 (12:30 +0200)]
Merge commit '2427ac6ccd868811d1fe9df7c64c50ca58abe6f6'

* commit '2427ac6ccd868811d1fe9df7c64c50ca58abe6f6':
  rtpproto: Update the parameter documentation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '5268bd2900effa59b51e0fede61aacde5e2f0b95'
Michael Niedermayer [Wed, 14 Aug 2013 10:22:20 +0000 (12:22 +0200)]
Merge commit '5268bd2900effa59b51e0fede61aacde5e2f0b95'

* commit '5268bd2900effa59b51e0fede61aacde5e2f0b95':
  segafilm: Error out on impossible packet size

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '3562684db716d11de0b0dcc52748e9cd90d68132'
Michael Niedermayer [Wed, 14 Aug 2013 10:11:40 +0000 (12:11 +0200)]
Merge commit '3562684db716d11de0b0dcc52748e9cd90d68132'

* commit '3562684db716d11de0b0dcc52748e9cd90d68132':
  ogg: Always alloc the private context in vorbis_header

Conflicts:
libavformat/oggparsevorbis.c

See: 18b46a494ef3592d69f4638dac1ebb613c0f548d
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'f13fe6020e6a3871f9b0c96b240e58e6ed4fb5d7'
Michael Niedermayer [Wed, 14 Aug 2013 09:55:45 +0000 (11:55 +0200)]
Merge commit 'f13fe6020e6a3871f9b0c96b240e58e6ed4fb5d7'

* commit 'f13fe6020e6a3871f9b0c96b240e58e6ed4fb5d7':
  rtjpeg: Use init_get_bits8

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '62cc7a91080194d9ead162516f779f20931220d9'
Michael Niedermayer [Wed, 14 Aug 2013 09:51:28 +0000 (11:51 +0200)]
Merge commit '62cc7a91080194d9ead162516f779f20931220d9'

* commit '62cc7a91080194d9ead162516f779f20931220d9':
  rtjpeg: return meaningful error codes

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '2df0776c2293efb0ac12c003843ce19332342e01'
Michael Niedermayer [Wed, 14 Aug 2013 09:41:58 +0000 (11:41 +0200)]
Merge commit '2df0776c2293efb0ac12c003843ce19332342e01'

* commit '2df0776c2293efb0ac12c003843ce19332342e01':
  nuv: Use av_fast_realloc

Conflicts:
libavcodec/nuv.c

This change is not merged, the long ago fixed buffer use after codec_reinit()
was a bug.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'feaaf5f7f0afac7223457f871af2ec9b99eb6cc6'
Michael Niedermayer [Wed, 14 Aug 2013 08:44:55 +0000 (10:44 +0200)]
Merge commit 'feaaf5f7f0afac7223457f871af2ec9b99eb6cc6'

* commit 'feaaf5f7f0afac7223457f871af2ec9b99eb6cc6':
  nuv: Reset the frame on resize

Conflicts:
libavcodec/nuv.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '075dbc185521f193c98b896cd63be3ec2613df5d'
Michael Niedermayer [Wed, 14 Aug 2013 08:35:38 +0000 (10:35 +0200)]
Merge commit '075dbc185521f193c98b896cd63be3ec2613df5d'

* commit '075dbc185521f193c98b896cd63be3ec2613df5d':
  nuv: Pad the lzo outbuf

Conflicts:
libavcodec/nuv.c

See: 95e1dfee76c9ecdf70037b7e792897bc6e3d460b
See: 266f6eefc603dd3c34be7de94eec5c9c293b80f1
Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agosdp: Add an option for sending RTCP packets to the source of the last packets
Martin Storsjö [Tue, 13 Aug 2013 10:21:35 +0000 (13:21 +0300)]
sdp: Add an option for sending RTCP packets to the source of the last packets

An SDP description normally only contains the target IP address
and port for the packets. This means that we don't really have
any clue where to send the RTCP RR packets - previously they're
sent to the destination IP written in the SDP (at the same port),
which rarely is the actual peer. And if the source for the packets
is on a different port than the destination, it's never correct.

With a new option, we can choose to send the packets to the
address that the latest packet on each socket arrived from.
---
Some may even argue that this should be the default - perhaps,
but I'd rather keep it optional at first. Additionally, I'm not
sure if sending RTCP RR directly back to the source is
desireable for e.g. multicast.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortpproto: Add an option for writing return packets to the address of the last receive...
Martin Storsjö [Tue, 13 Aug 2013 10:20:42 +0000 (13:20 +0300)]
rtpproto: Add an option for writing return packets to the address of the last received packets

If we've received packets on the same socket before, the return
packets are sent to that address. If we've only received packets
on the other socket, try to guess the source port for the other
one assuming the basic +1/-1 logic.

Signed-off-by: Martin Storsjö <martin@martin.st>