ffmpeg.git
7 years agovf_overlay: prevent premature freeing of cur_buf
Michael Niedermayer [Sat, 21 Jul 2012 20:00:10 +0000 (22:00 +0200)]
vf_overlay: prevent premature freeing of cur_buf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_overlay: use unref_bufferP()
Michael Niedermayer [Sat, 21 Jul 2012 19:59:46 +0000 (21:59 +0200)]
vf_overlay: use unref_bufferP()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosink_buffer: prevent prematurely freeing of cur_buf
Michael Niedermayer [Sat, 21 Jul 2012 19:39:11 +0000 (21:39 +0200)]
sink_buffer: prevent prematurely freeing of cur_buf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_thumbnail: prevent premature freeing of ref
Michael Niedermayer [Sat, 21 Jul 2012 19:38:19 +0000 (21:38 +0200)]
vf_thumbnail: prevent premature freeing of ref

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_colormatrix: avoid using out_buf
Michael Niedermayer [Sat, 21 Jul 2012 19:35:05 +0000 (21:35 +0200)]
vf_colormatrix: avoid using out_buf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agozerocodec: fix direct rendering.
Reimar Döffinger [Sat, 21 Jul 2012 11:22:04 +0000 (13:22 +0200)]
zerocodec: fix direct rendering.

Set picture type before calling get_buffer.
This allows the DR application to make better decisions.
It also fixes a resource leak in case of missing reference frames
since it would call get_buffer but never release_buffer.
Also use FFSWAP to ensure that the AVFrame is properly initialized
in the next get_buffer (in particular that data[0] is NULL).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agolibopenjpegdec: set cp_reduce value only once
Paul B Mahol [Sat, 21 Jul 2012 16:12:04 +0000 (16:12 +0000)]
libopenjpegdec: set cp_reduce value only once

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoiff: pass context to av_log_ask_for_sample
Paul B Mahol [Sat, 21 Jul 2012 16:05:22 +0000 (16:05 +0000)]
iff: pass context to av_log_ask_for_sample

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoiff: remove dupe ID_ANNO definition
Paul B Mahol [Sat, 21 Jul 2012 10:30:12 +0000 (10:30 +0000)]
iff: remove dupe ID_ANNO definition

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agodoc/outdevs: fix @code{} syntax in caca device docs
Stefano Sabatini [Sat, 21 Jul 2012 08:17:02 +0000 (10:17 +0200)]
doc/outdevs: fix @code{} syntax in caca device docs

7 years agoChangelog: add entry for the caca device
Stefano Sabatini [Sat, 21 Jul 2012 08:15:44 +0000 (10:15 +0200)]
Changelog: add entry for the caca device

7 years agoalacdec: fix packed sample output with 5.1
Michael Niedermayer [Sat, 21 Jul 2012 04:39:01 +0000 (06:39 +0200)]
alacdec: fix packed sample output with 5.1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoriff: add G723_1 wav tag
Piotr Bandurski [Fri, 20 Jul 2012 22:45:34 +0000 (00:45 +0200)]
riff: add G723_1 wav tag

Reveiwed-by: compn <tempn@twmi.rr.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoac3dec: set decode_error_flags field in ac3 codec
Marton Balint [Fri, 20 Jul 2012 21:28:03 +0000 (23:28 +0200)]
ac3dec: set decode_error_flags field in ac3 codec

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec: add decode_error_flags field to AVFrame
Marton Balint [Fri, 20 Jul 2012 21:28:02 +0000 (23:28 +0200)]
avcodec: add decode_error_flags field to AVFrame

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibcaca output device
Paul B Mahol [Tue, 13 Mar 2012 21:45:46 +0000 (21:45 +0000)]
libcaca output device

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 21 Jul 2012 00:49:57 +0000 (02:49 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libopenjpeg: introduce lowres and lowqual private options
  FATE: add a test for flac cover art.
  cafdec: allow larger ALAC magic cookie
  alac: fix channel pointer assignment for 24 and 32-bit

Conflicts:
libavcodec/alac.c
libavcodec/libopenjpegdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agotiertexseq: remove redundant string from log message
Paul B Mahol [Fri, 20 Jul 2012 19:44:26 +0000 (19:44 +0000)]
tiertexseq: remove redundant string from log message

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agov4l2: remove call to v4l2_fd_open.
Nicolas George [Fri, 20 Jul 2012 08:55:59 +0000 (10:55 +0200)]
v4l2: remove call to v4l2_fd_open.

v4l2_fd_open is already called at the end of v4l2_open;
calling a second time leaks structures inside libv4l2.

Fix trac ticket #1560.

7 years agoexr: display warning if multiple compression attributes are found
Paul B Mahol [Thu, 19 Jul 2012 18:04:49 +0000 (18:04 +0000)]
exr: display warning if multiple compression attributes are found

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoexr: merge common code
Paul B Mahol [Thu, 19 Jul 2012 18:00:10 +0000 (18:00 +0000)]
exr: merge common code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoexr: compression attribute is mandatory
Paul B Mahol [Thu, 19 Jul 2012 17:56:55 +0000 (17:56 +0000)]
exr: compression attribute is mandatory

Do not continue decoding if one is missing.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agocmdutils/alloc_buffer: fix typo
chinshou [Fri, 20 Jul 2012 14:42:29 +0000 (16:42 +0200)]
cmdutils/alloc_buffer: fix typo

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodnxhd: Fix 10-bit DNxHD quant matrices
Joseph Artsimovich [Fri, 20 Jul 2012 10:31:06 +0000 (11:31 +0100)]
dnxhd: Fix 10-bit DNxHD quant matrices

Convert them to zigzag order, as the rest of them are.

When I was adding support for 10-bit DNxHD, I just copy-pasted the
missing quant matrices from the spec. Now it turns out the existing
matrices in dnxhddata.c were in zigzag order. This resulted in wrong
quantization for 10-bit DNxHD. The attached patch fixes the problem by
converting 10-bit quant matrices to zigzag order.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoudp: fix compilation when HAVE_PTHREAD_CANCEL isnt defined
Michael Niedermayer [Fri, 20 Jul 2012 12:58:11 +0000 (14:58 +0200)]
udp: fix compilation when HAVE_PTHREAD_CANCEL isnt defined

This happens with for example mplayer.
Fixing it in ffmpeg allows new ffmpeg to be compiled with older mplayer
which would not be possible if the fix was just in mplayer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoalac: drop packed sample output support with the next major bump
Michael Niedermayer [Fri, 20 Jul 2012 12:10:21 +0000 (14:10 +0200)]
alac: drop packed sample output support with the next major bump

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibopenjpeg: introduce lowres and lowqual private options
Luca Barbato [Wed, 18 Jul 2012 23:31:39 +0000 (01:31 +0200)]
libopenjpeg: introduce lowres and lowqual private options

OpenJPEG can decode in lower resolution or decode only a number
of enhancement layers.

7 years agolavfi: add FF_*LINK_IDX convenience macros.
Nicolas George [Thu, 19 Jul 2012 10:59:38 +0000 (12:59 +0200)]
lavfi: add  FF_*LINK_IDX convenience macros.

7 years agolavc: set best_effort_timestamp for audio too.
Nicolas George [Thu, 19 Jul 2012 09:26:47 +0000 (11:26 +0200)]
lavc: set best_effort_timestamp for audio too.

7 years agolavfi: make copy_buffer_ref common.
Nicolas George [Thu, 19 Jul 2012 09:14:04 +0000 (11:14 +0200)]
lavfi: make copy_buffer_ref common.

7 years agolavf: make cmdutils's check_stream_specifier public.
Nicolas George [Wed, 18 Jul 2012 09:41:13 +0000 (11:41 +0200)]
lavf: make cmdutils's check_stream_specifier public.

The new function is called avformat_match_stream_specifier()
and does not include logging the error message.

7 years agodoc/avtools-common-opts: fix a few typos in the "Stream specifiers" section
Stefano Sabatini [Fri, 20 Jul 2012 10:55:14 +0000 (12:55 +0200)]
doc/avtools-common-opts: fix a few typos in the "Stream specifiers" section

7 years agofaq: explain dependency problems with static libs.
Nicolas George [Wed, 11 Jul 2012 10:01:19 +0000 (12:01 +0200)]
faq: explain dependency problems with static libs.

7 years agomatroska: add support for Opus.
Nicolas George [Wed, 4 Jul 2012 14:36:56 +0000 (16:36 +0200)]
matroska: add support for Opus.

Opus in Matroska is still a draft.

7 years agolavc: Opus decoder using libopus.
Nicolas George [Sun, 24 Jun 2012 09:39:05 +0000 (11:39 +0200)]
lavc: Opus decoder using libopus.

7 years agooggdec: add support for Opus codec.
Nicolas George [Sun, 24 Jun 2012 09:38:18 +0000 (11:38 +0200)]
oggdec: add support for Opus codec.

This patch also introduces CODEC_ID_OPUS.

7 years agoffmpeg: probe buffersinks once more after EOF.
Nicolas George [Tue, 17 Jul 2012 16:02:33 +0000 (18:02 +0200)]
ffmpeg: probe buffersinks once more after EOF.

Reap buffers stored in the buffer sinks even when
the avfilter_graph_request_oldest() loop only returns EOF.

avfilter_graph_request_oldest() can cause frames to arrive
to the sinks even when it returns EOF.

7 years agoFATE: add a test for flac cover art.
Anton Khirnov [Wed, 4 Jul 2012 08:46:10 +0000 (10:46 +0200)]
FATE: add a test for flac cover art.

7 years agoalacdec: several players have problems with planar audio still thus temporary put...
Michael Niedermayer [Fri, 20 Jul 2012 02:48:25 +0000 (04:48 +0200)]
alacdec: several players have problems with planar audio still thus temporary put packed output back by default

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffplay: fix warning that i just mistakenly introduced
Michael Niedermayer [Fri, 20 Jul 2012 01:47:11 +0000 (03:47 +0200)]
ffplay: fix warning that i just mistakenly introduced

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffplay: fix planar audio
Michael Niedermayer [Fri, 20 Jul 2012 01:36:33 +0000 (03:36 +0200)]
ffplay: fix planar audio

This caused ALAC to fail since the last merge

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocafdec: allow larger ALAC magic cookie
Justin Ruggles [Thu, 19 Jul 2012 23:48:21 +0000 (19:48 -0400)]
cafdec: allow larger ALAC magic cookie

It already skips any extra bytes at the end, and apparently there are some
samples in the wild with larger 'kuki' chunks.

7 years agoalac: fix channel pointer assignment for 24 and 32-bit
Justin Ruggles [Thu, 19 Jul 2012 23:47:08 +0000 (19:47 -0400)]
alac: fix channel pointer assignment for 24 and 32-bit

Needs to be done separately for each element.

7 years agolavd/sdl: use verb in options help message
Stefano Sabatini [Thu, 19 Jul 2012 21:51:56 +0000 (23:51 +0200)]
lavd/sdl: use verb in options help message

An help message tells what an option does, not what its argument is.

7 years agolavf: count skipped samples for initial timestamps.
Nicolas George [Sun, 15 Jul 2012 15:38:28 +0000 (17:38 +0200)]
lavf: count skipped samples for initial timestamps.

If skip_samples is set and timestamps are synthesized using durations,
make them start at -skip_samples (rescaled) instead of 0,
so that the timestamp of the first undiscarded sample is 0.

7 years agolavc: update pkt_duration for skipped samples.
Nicolas George [Sun, 15 Jul 2012 14:24:59 +0000 (16:24 +0200)]
lavc: update pkt_duration for skipped samples.

Also: factor the the computation of the timestamp difference.

7 years agoRevert "ffmpeg: set pkt_timebase"
Nicolas George [Sun, 15 Jul 2012 14:09:01 +0000 (16:09 +0200)]
Revert "ffmpeg: set pkt_timebase"

This reverts commit 744bd8d08c18d68d92ead091c7e335b4b07459aa.

pkt_timebase is now set by av_codec_set_pkt_timebase.
If some demuxer set AVStream.time_base directly,
it need to be fixed. There is a warning to detect it.

7 years agolavf: set pkt_timebase at the same time as stream->time_base.
Nicolas George [Sun, 15 Jul 2012 14:04:44 +0000 (16:04 +0200)]
lavf: set pkt_timebase at the same time as stream->time_base.

7 years agolavc: warn when impossible to adjust timestamps for skipped samples.
Nicolas George [Sun, 15 Jul 2012 12:37:27 +0000 (14:37 +0200)]
lavc: warn when impossible to adjust timestamps for skipped samples.

It is likely to happen if pkt_timebase was not set.

7 years agolavc: add debug info about skipped samples.
Nicolas George [Sun, 15 Jul 2012 12:36:22 +0000 (14:36 +0200)]
lavc: add debug info about skipped samples.

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 19 Jul 2012 21:31:04 +0000 (23:31 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (38 commits)
  alac: cosmetics: general pretty-printing and comment clean up
  alac: calculate buffer size outside the loop in allocate_buffers()
  alac: change some data types to plain int
  alac: cosmetics: rename some variables and function names
  alac: multi-channel decoding support
  alac: split element parsing into a separate function
  alac: support a read sample size of up to 32
  alac: output in planar sample format
  alac: add 32-bit decoding support
  alac: simplify channel interleaving
  alac: use AVPacket fields directly in alac_decode_frame()
  alac: fix check for valid max_samples_per_frame
  alac: use get_sbits() to read LPC coefficients instead of casting
  alac: move the current samples per frame to the ALACContext
  alac: avoid using a double-negative when checking if the frame is compressed
  alac: factor out output_size check in predictor_decompress_fir_adapt()
  alac: factor out loading of next decoded sample in LPC prediction
  alac: use index into buffer_out instead of incrementing the pointer
  alac: simplify lpc coefficient adaptation
  alac: reduce the number of local variables needed in lpc prediction
  ...

Conflicts:
libavcodec/alac.c
libavformat/cafdec.c
libavformat/mov.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf/udp: warn in case the circular_buffer_size or overrun_nonfatal options are not...
Stefano Sabatini [Wed, 18 Jul 2012 14:33:24 +0000 (16:33 +0200)]
lavf/udp: warn in case the circular_buffer_size or overrun_nonfatal options are not supported

They are only supported if pthread is available.

7 years agodoc/protocols: add a note regarding the circular RX UDP buffer
Stefano Sabatini [Wed, 18 Jul 2012 14:56:11 +0000 (16:56 +0200)]
doc/protocols: add a note regarding the circular RX UDP buffer

7 years agodoc/protocols: apply misc fixes to the UDP protocol section
Stefano Sabatini [Wed, 18 Jul 2012 14:13:51 +0000 (16:13 +0200)]
doc/protocols: apply misc fixes to the UDP protocol section

7 years agodoc/protocols: extend/clarify documentation for the buffer_size UDP option
Stefano Sabatini [Wed, 18 Jul 2012 16:38:01 +0000 (18:38 +0200)]
doc/protocols: extend/clarify documentation for the buffer_size UDP option

7 years agodoc/protocols: document "fifo_size" and "overrun_nonfatal" UDP options
Stefano Sabatini [Sun, 15 Jul 2012 18:56:08 +0000 (20:56 +0200)]
doc/protocols: document "fifo_size" and "overrun_nonfatal" UDP options

Address trac ticket #1511.

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 19 Jul 2012 19:58:09 +0000 (21:58 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Print full compiler identification, not only version number
  flacdec: reverse lpc coeff order, simplify filter
  x86: dsputil: drop some unused CPU flag debug code

Conflicts:
cmdutils.c
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoalac: cosmetics: general pretty-printing and comment clean up
Justin Ruggles [Mon, 9 Jul 2012 21:02:42 +0000 (17:02 -0400)]
alac: cosmetics: general pretty-printing and comment clean up

7 years agoalac: calculate buffer size outside the loop in allocate_buffers()
Justin Ruggles [Mon, 9 Jul 2012 20:57:22 +0000 (16:57 -0400)]
alac: calculate buffer size outside the loop in allocate_buffers()

7 years agoalac: change some data types to plain int
Justin Ruggles [Mon, 9 Jul 2012 20:56:34 +0000 (16:56 -0400)]
alac: change some data types to plain int

7 years agoalac: cosmetics: rename some variables and function names
Justin Ruggles [Mon, 9 Jul 2012 20:52:19 +0000 (16:52 -0400)]
alac: cosmetics: rename some variables and function names

7 years agoalac: multi-channel decoding support
Andrew D'Addesio [Mon, 9 Jul 2012 20:29:49 +0000 (16:29 -0400)]
alac: multi-channel decoding support

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agoalac: split element parsing into a separate function
Justin Ruggles [Mon, 9 Jul 2012 20:05:53 +0000 (16:05 -0400)]
alac: split element parsing into a separate function

This will make multi-channel implementation simpler.
Based partially on a patch by Andrew D'Addesio <modchipv12@gmail.com>.

7 years agoalac: support a read sample size of up to 32
Justin Ruggles [Mon, 9 Jul 2012 19:38:58 +0000 (15:38 -0400)]
alac: support a read sample size of up to 32

Use get_bits_long() in decode_scalar().
Use unsigned int for decoded value.

7 years agoalac: output in planar sample format
Justin Ruggles [Mon, 9 Jul 2012 19:18:51 +0000 (15:18 -0400)]
alac: output in planar sample format

Avoids unneeded interleaving and allows for reusing the AVFrame output buffer
as the internal buffer for 24-bit and 32-bit sample size.

7 years agoalac: add 32-bit decoding support
Justin Ruggles [Mon, 9 Jul 2012 18:36:03 +0000 (14:36 -0400)]
alac: add 32-bit decoding support

7 years agoalac: simplify channel interleaving
Andrew D'Addesio [Mon, 9 Jul 2012 18:34:41 +0000 (14:34 -0400)]
alac: simplify channel interleaving

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agoalac: use AVPacket fields directly in alac_decode_frame()
Justin Ruggles [Mon, 9 Jul 2012 17:30:03 +0000 (13:30 -0400)]
alac: use AVPacket fields directly in alac_decode_frame()

7 years agoalac: fix check for valid max_samples_per_frame
Justin Ruggles [Mon, 9 Jul 2012 17:23:22 +0000 (13:23 -0400)]
alac: fix check for valid max_samples_per_frame

7 years agoalac: use get_sbits() to read LPC coefficients instead of casting
Justin Ruggles [Mon, 9 Jul 2012 17:19:10 +0000 (13:19 -0400)]
alac: use get_sbits() to read LPC coefficients instead of casting

7 years agoalac: move the current samples per frame to the ALACContext
Justin Ruggles [Mon, 9 Jul 2012 17:15:35 +0000 (13:15 -0400)]
alac: move the current samples per frame to the ALACContext

This will simplify the multi-channel implementation.

7 years agoalac: avoid using a double-negative when checking if the frame is compressed
Justin Ruggles [Mon, 9 Jul 2012 17:05:35 +0000 (13:05 -0400)]
alac: avoid using a double-negative when checking if the frame is compressed

7 years agoalac: factor out output_size check in predictor_decompress_fir_adapt()
Justin Ruggles [Mon, 9 Jul 2012 17:01:32 +0000 (13:01 -0400)]
alac: factor out output_size check in predictor_decompress_fir_adapt()

7 years agoalac: factor out loading of next decoded sample in LPC prediction
Justin Ruggles [Mon, 9 Jul 2012 16:57:16 +0000 (12:57 -0400)]
alac: factor out loading of next decoded sample in LPC prediction

7 years agoalac: use index into buffer_out instead of incrementing the pointer
Justin Ruggles [Mon, 9 Jul 2012 16:52:30 +0000 (12:52 -0400)]
alac: use index into buffer_out instead of incrementing the pointer

7 years agoalac: simplify lpc coefficient adaptation
Justin Ruggles [Mon, 9 Jul 2012 15:33:31 +0000 (11:33 -0400)]
alac: simplify lpc coefficient adaptation

7 years agoalac: reduce the number of local variables needed in lpc prediction
Justin Ruggles [Mon, 9 Jul 2012 15:18:21 +0000 (11:18 -0400)]
alac: reduce the number of local variables needed in lpc prediction

7 years agoalac: simplify 1st order prediction and reading of warm-up samples
Justin Ruggles [Mon, 9 Jul 2012 15:12:25 +0000 (11:12 -0400)]
alac: simplify 1st order prediction and reading of warm-up samples

7 years agoalac: cosmetics: reindent after last commit
Justin Ruggles [Mon, 9 Jul 2012 15:08:59 +0000 (11:08 -0400)]
alac: cosmetics: reindent after last commit

7 years agoalac: remove unneeded conditionals in predictor_decompress_fir_adapt()
Justin Ruggles [Mon, 9 Jul 2012 15:07:57 +0000 (11:07 -0400)]
alac: remove unneeded conditionals in predictor_decompress_fir_adapt()

7 years agoalac: use sizeof() instead of hardcoded data sizes
Justin Ruggles [Mon, 9 Jul 2012 15:04:56 +0000 (11:04 -0400)]
alac: use sizeof() instead of hardcoded data sizes

7 years agoalac: make block_size signed
Justin Ruggles [Mon, 9 Jul 2012 15:02:48 +0000 (11:02 -0400)]
alac: make block_size signed

It does not need to be unsigned.

7 years agoalac: remove a duplicate local variable
Justin Ruggles [Mon, 9 Jul 2012 15:00:16 +0000 (11:00 -0400)]
alac: remove a duplicate local variable

7 years agoalac: conditionally set sign_modifier to 1
Justin Ruggles [Mon, 9 Jul 2012 14:57:42 +0000 (10:57 -0400)]
alac: conditionally set sign_modifier to 1

It is already unconditionally set to 0 prior to this, so we can modify it
only when needed.

7 years agoalac: eliminate 2 unneeded local variables in bastardized_rice_decompress()
Justin Ruggles [Mon, 9 Jul 2012 14:53:28 +0000 (10:53 -0400)]
alac: eliminate 2 unneeded local variables in bastardized_rice_decompress()

x_modified is just unnecessary, and final_val can be removed by simplifying
the unsigned-to-signed conversion.

7 years agoalac: adjust conditions for updating entropy decoder history
Justin Ruggles [Mon, 9 Jul 2012 14:42:52 +0000 (10:42 -0400)]
alac: adjust conditions for updating entropy decoder history

avoids some unnecessary arithmetic in certain situations

7 years agoalac: cosmetics: reindent after last commit
Justin Ruggles [Mon, 9 Jul 2012 14:34:11 +0000 (10:34 -0400)]
alac: cosmetics: reindent after last commit

7 years agoalac: limit the rice param before passing to decode_scalar()
Justin Ruggles [Mon, 9 Jul 2012 14:33:28 +0000 (10:33 -0400)]
alac: limit the rice param before passing to decode_scalar()

reduces the number of parameters to decode_scalar() and slightly simplifies
the code

7 years agoalac: reduce the number of parameters to bastardized_rice_decompress()
Justin Ruggles [Mon, 9 Jul 2012 14:30:40 +0000 (10:30 -0400)]
alac: reduce the number of parameters to bastardized_rice_decompress()

Use the ALACContext fields directly instead.

7 years agoalac: cosmetics: rename some ALACContext parameters
Justin Ruggles [Mon, 9 Jul 2012 14:23:47 +0000 (10:23 -0400)]
alac: cosmetics: rename some ALACContext parameters

7 years agoalac: clean up and update comments leftover from reverse-engineering
Justin Ruggles [Mon, 9 Jul 2012 14:10:02 +0000 (10:10 -0400)]
alac: clean up and update comments leftover from reverse-engineering

7 years agoavformat: move 'chan' tag parsing to mov_chan.c to share with the CAF demuxer
Justin Ruggles [Sat, 7 Apr 2012 16:40:50 +0000 (12:40 -0400)]
avformat: move 'chan' tag parsing to mov_chan.c to share with the CAF demuxer

7 years agocaf: use int64_t for num_packets
Justin Ruggles [Mon, 9 Jul 2012 18:16:37 +0000 (14:16 -0400)]
caf: use int64_t for num_packets

It is used to store a value read by avio_rb64().

7 years agocaf: fix 'pakt' chunk parsing
Justin Ruggles [Mon, 9 Jul 2012 18:10:52 +0000 (14:10 -0400)]
caf: fix 'pakt' chunk parsing

according to the CAF specification:
"... the value for mChunkSize can be greater than the actual valid content
of the packet table chunk"

7 years agocaf: support either old or new style ALAC magic kuki chunk
Justin Ruggles [Sun, 8 Jul 2012 23:33:10 +0000 (19:33 -0400)]
caf: support either old or new style ALAC magic kuki chunk

7 years agothreads: fix a potential race spotted by helgrind.
Clément Bœsch [Thu, 19 Jul 2012 17:08:31 +0000 (19:08 +0200)]
threads: fix a potential race spotted by helgrind.

7 years agofate/subtitles: sort tests alphabetically.
Clément Bœsch [Thu, 19 Jul 2012 17:07:10 +0000 (19:07 +0200)]
fate/subtitles: sort tests alphabetically.

7 years agomxfdec: simplify code by using av_calloc()
Michael Niedermayer [Wed, 1 Feb 2012 05:05:12 +0000 (06:05 +0100)]
mxfdec: simplify code by using av_calloc()

Reviewed a long time ago by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavidec: Mark first frame as keyframe in case there are no keyframes.
Michael Niedermayer [Mon, 30 Jan 2012 22:52:45 +0000 (23:52 +0100)]
avidec: Mark first frame as keyframe in case there are no keyframes.

This fixes seeking in filecopy.avi of Ticket504

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix misspellings of FFmpeg
Michael Niedermayer [Wed, 18 Jul 2012 20:46:47 +0000 (22:46 +0200)]
Fix misspellings of FFmpeg

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