ffmpeg.git
8 years agodoc: use @command{} for commands.
Clément Bœsch [Mon, 2 Jan 2012 14:32:55 +0000 (15:32 +0100)]
doc: use @command{} for commands.

8 years agodoc: use @code{} for --{enable,disable}-options.
Clément Bœsch [Mon, 2 Jan 2012 14:23:09 +0000 (15:23 +0100)]
doc: use @code{} for --{enable,disable}-options.

8 years agojpegdec: Fix vlc table check for progressive jpegs.
Michael Niedermayer [Tue, 3 Jan 2012 05:53:18 +0000 (06:53 +0100)]
jpegdec: Fix vlc table check for progressive jpegs.

Fixes Ticket834

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavf: Fix try_decode_frame() so it doesnt loop infinitely.
Michael Niedermayer [Wed, 4 Jan 2012 03:08:46 +0000 (04:08 +0100)]
lavf: Fix try_decode_frame() so it doesnt loop infinitely.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoelectronicarts: Pass error through ea_read_header().
Michael Niedermayer [Wed, 4 Jan 2012 03:02:22 +0000 (04:02 +0100)]
electronicarts: Pass error through ea_read_header().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoelectronicarts: Fix division by zero. Fixes Ticket #793
Oana Stratulat [Wed, 4 Jan 2012 01:13:27 +0000 (03:13 +0200)]
electronicarts: Fix division by zero. Fixes Ticket #793

Signed-off-by: Oana Stratulat <oanaandreeastratulat@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 4 Jan 2012 00:12:34 +0000 (01:12 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fate: add dxtory test
  adx_parser: rewrite.
  adxdec: Validate channel count to fix a division by zero.
  adxdec: Do not require extradata.
  cmdutils: K&R reformatting cosmetics
  alacdec: implement the 2-pass prediction type.
  alacenc: implement the 2-pass prediction type.
  alacenc: do not generate invalid multi-channel ALAC files
  alacdec: fill in missing or guessed info about the extradata format.
  utvideo: proper median prediction for interlaced videos
  lavu: bump lavu minor for av_popcount64
  dca: K&R formatting cosmetics
  dct: K&R formatting cosmetics
  lavf: flush decoders in avformat_find_stream_info().
  win32: detect number of CPUs using affinity
  Add av_popcount64
  snow: Restore three mistakenly removed casts.

Conflicts:
cmdutils.c
doc/APIchanges
libavcodec/adx_parser.c
libavcodec/adxdec.c
libavcodec/alacenc.c
libavutil/avutil.h
tests/fate/screen.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffprobe: add support to option -show_error
Stefano Sabatini [Thu, 29 Dec 2011 12:24:59 +0000 (13:24 +0100)]
ffprobe: add support to option -show_error

8 years agoffprobe: remove unused variable in show_format()
Stefano Sabatini [Sun, 1 Jan 2012 16:19:33 +0000 (17:19 +0100)]
ffprobe: remove unused variable in show_format()

8 years agoffprobe: reindent after the last commit
Stefano Sabatini [Thu, 29 Dec 2011 11:52:04 +0000 (12:52 +0100)]
ffprobe: reindent after the last commit

8 years agoffprobe: change order of operations in probe_file()
Stefano Sabatini [Thu, 29 Dec 2011 11:50:25 +0000 (12:50 +0100)]
ffprobe: change order of operations in probe_file()

This is required by a pending patch, also fixes a memleak due to the
writer context not being closed in case of open_input_file() failure.

8 years agoffprobe: prefer av_log to fprintf(stderr)
Stefano Sabatini [Thu, 29 Dec 2011 11:36:33 +0000 (12:36 +0100)]
ffprobe: prefer av_log to fprintf(stderr)

8 years agowmall: remove ;;
Michael Niedermayer [Tue, 3 Jan 2012 22:52:28 +0000 (23:52 +0100)]
wmall: remove ;;

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'shariman/wmall'
Michael Niedermayer [Tue, 3 Jan 2012 22:45:35 +0000 (23:45 +0100)]
Merge remote-tracking branch 'shariman/wmall'

* shariman/wmall:
  Fix audio output
  Suppress dumping of residues buffer
  Use quantizer value read from bitstream
  Cosmetics: Remove two empty lines and realign some code
  Reset acfilter_prevvalues buffer in clear_codec_buffers()
  Fix AC filter buffers and AC filter reversion

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate: add dxtory test
Oana Stratulat [Sun, 1 Jan 2012 18:55:21 +0000 (20:55 +0200)]
fate: add dxtory test

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
8 years agoSet bits_per_coded_sample when encoding Y41P.
Carl Eugen Hoyos [Tue, 3 Jan 2012 22:05:54 +0000 (23:05 +0100)]
Set bits_per_coded_sample when encoding Y41P.

This allows mplayer -vc bt411 to decode files
encoded with FFmpeg.

Reviewed-by: Paul B Mahol
8 years agortsp: Fix compiler warning for uninitialized variable.
Jean First [Tue, 3 Jan 2012 22:01:28 +0000 (23:01 +0100)]
rtsp: Fix compiler warning for uninitialized variable.

Reviewed-by: Martin Storsjö
8 years agoadx_parser: rewrite.
Michael Niedermayer [Sun, 18 Dec 2011 17:57:56 +0000 (18:57 +0100)]
adx_parser: rewrite.

The previous code ended in multiple different infinite
loops. See stl_ten_1_big.sfd as example with and without zzuf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
8 years agoadxdec: Validate channel count to fix a division by zero.
Justin Ruggles [Mon, 19 Dec 2011 13:43:10 +0000 (08:43 -0500)]
adxdec: Validate channel count to fix a division by zero.

8 years agoadxdec: Do not require extradata.
Michael Niedermayer [Sun, 18 Dec 2011 19:10:30 +0000 (20:10 +0100)]
adxdec: Do not require extradata.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
8 years agocmdutils: K&R reformatting cosmetics
Aneesh Dogra [Sat, 31 Dec 2011 12:31:54 +0000 (18:01 +0530)]
cmdutils: K&R reformatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoalacdec: implement the 2-pass prediction type.
Justin Ruggles [Wed, 7 Dec 2011 16:56:57 +0000 (11:56 -0500)]
alacdec: implement the 2-pass prediction type.

The reference encoder does not generate any streams using this, but the
reference decoder can handle it, so we should as well.

8 years agoalacenc: implement the 2-pass prediction type.
Justin Ruggles [Wed, 7 Dec 2011 18:01:01 +0000 (13:01 -0500)]
alacenc: implement the 2-pass prediction type.

This isn't used by the reference encoder, but it is supported by the decoder.

8 years agoalacenc: do not generate invalid multi-channel ALAC files
Justin Ruggles [Wed, 7 Dec 2011 17:04:21 +0000 (12:04 -0500)]
alacenc: do not generate invalid multi-channel ALAC files

8 years agoalacdec: fill in missing or guessed info about the extradata format.
Justin Ruggles [Wed, 7 Dec 2011 16:55:24 +0000 (11:55 -0500)]
alacdec: fill in missing or guessed info about the extradata format.

Now that there is official documentation from Apple about this, we don't have
to guess anymore.

8 years agoutvideo: proper median prediction for interlaced videos
Kostya Shishkov [Sun, 1 Jan 2012 16:44:08 +0000 (17:44 +0100)]
utvideo: proper median prediction for interlaced videos

8 years agolavu: bump lavu minor for av_popcount64
Janne Grunau [Tue, 3 Jan 2012 14:30:30 +0000 (15:30 +0100)]
lavu: bump lavu minor for av_popcount64

Add it to doc/APIchanges and update and correct other entries.

8 years agodca: K&R formatting cosmetics
Shitiz Garg [Tue, 3 Jan 2012 10:49:28 +0000 (16:19 +0530)]
dca: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agodct: K&R formatting cosmetics
Aneesh Dogra [Sun, 1 Jan 2012 16:46:37 +0000 (22:16 +0530)]
dct: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agolavf: flush decoders in avformat_find_stream_info().
Anton Khirnov [Mon, 2 Jan 2012 08:01:02 +0000 (09:01 +0100)]
lavf: flush decoders in avformat_find_stream_info().

This means that avformat_find_stream_info() now works properly with
multiple threads, so there's no need to force thread count to 1.

8 years agowin32: detect number of CPUs using affinity
Daniel Verkamp [Sun, 1 Jan 2012 23:54:40 +0000 (23:54 +0000)]
win32: detect number of CPUs using affinity

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
8 years agoAdd av_popcount64
Daniel Verkamp [Tue, 3 Jan 2012 01:23:48 +0000 (01:23 +0000)]
Add av_popcount64

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
8 years agoSupport 8bpp grayscale Sun Rasterfile images.
Piotr Bandurski [Tue, 3 Jan 2012 12:24:50 +0000 (13:24 +0100)]
Support 8bpp grayscale Sun Rasterfile images.

Fixes ticket #865.

8 years agosnow: Restore three mistakenly removed casts.
Diego Biurrun [Mon, 2 Jan 2012 16:29:10 +0000 (17:29 +0100)]
snow: Restore three mistakenly removed casts.

8 years agoAdded yuva420p decoding support for libopenjpeg
Michael Bradshaw [Fri, 2 Dec 2011 21:39:26 +0000 (14:39 -0700)]
Added yuva420p decoding support for libopenjpeg

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdded RGBA and YUV440 decoding support for libopenjpeg decoder
Michael Bradshaw [Thu, 1 Dec 2011 04:44:41 +0000 (21:44 -0700)]
Added RGBA and YUV440 decoding support for libopenjpeg decoder

Reviewed-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed openjpeg decoding bug with width/linesize issue
Michael Bradshaw [Sat, 3 Dec 2011 19:14:03 +0000 (12:14 -0700)]
Fixed openjpeg decoding bug with width/linesize issue

The original code wasn't taking into account the fact that linesize may not equal the frame's width.  This is to correct that.

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavc: replace rest of deprecated SAMPLE_FMT_* with AV_SAMPLE_FMT_*
Paul B Mahol [Tue, 3 Jan 2012 02:45:05 +0000 (02:45 +0000)]
lavc: replace rest of deprecated SAMPLE_FMT_* with AV_SAMPLE_FMT_*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavc: replace rest of deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
Paul B Mahol [Mon, 2 Jan 2012 17:49:38 +0000 (17:49 +0000)]
lavc: replace rest of deprecated FF_*_TYPE with AV_PICTURE_TYPE_*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: fix compiler warning for uninitialized variables
Jean First [Mon, 2 Jan 2012 23:28:06 +0000 (00:28 +0100)]
ffmpeg: fix compiler warning for uninitialized variables

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agowtvdec: use intfloat.h instead of intfloat_readwrite.h
Jean First [Mon, 2 Jan 2012 23:28:08 +0000 (00:28 +0100)]
wtvdec: use intfloat.h instead of intfloat_readwrite.h

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: use avformat_close_input instead of av_close_input_file
Jean First [Mon, 2 Jan 2012 23:28:05 +0000 (00:28 +0100)]
ffmpeg: use avformat_close_input instead of av_close_input_file

Signed-off-by: Jean First <jeanfirst@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovp3: remove redeclaration of vp3_decode_flush
Jean First [Mon, 2 Jan 2012 23:28:04 +0000 (00:28 +0100)]
vp3: remove redeclaration of vp3_decode_flush

Signed-off-by: Jean First <jeanfirst@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 3 Jan 2012 01:25:56 +0000 (02:25 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpegenc: use avctx->slices as number of slices
  v410enc: fix undefined signed left shift caused by integer promotion
  Release notes: mention cleaned up header includes
  fix Changelog file
  Fix a bunch of typos.
  Drop some pointless void* return value casts from av_malloc() invocations.
  wavpack: fix typos in previous cosmetic clean-up commit
  wavpack: cosmetics: K&R pretty-printing
  avconv: remove the 'codec framerate is different from stream' warning
  wavpack: determine sample_fmt before requesting a buffer
  bmv audio: implement new audio decoding API
  mpegaudiodec: skip all channels when skipping granules
  mpegenc: simplify muxrate calculation

Conflicts:
Changelog
avconv.c
doc/RELEASE_NOTES
libavcodec/h264.c
libavcodec/mpeg12.c
libavcodec/mpegaudiodec.c
libavcodec/mpegvideo.c
libavformat/mpegenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix audio output
Mashiat Sarker Shakkhar [Mon, 2 Jan 2012 19:49:00 +0000 (01:49 +0600)]
Fix audio output

Up until now, the decoder didn't output anything
in the data buffer. This fixes all the issues
related to sample format, removes leftover code
and actually outputs some audio to data buffer.

With this, the only sample we have can be played.
Seeking is still broken though.

8 years agoSuppress dumping of residues buffer
Mashiat Sarker Shakkhar [Mon, 2 Jan 2012 19:51:17 +0000 (01:51 +0600)]
Suppress dumping of residues buffer

8 years agompegenc: use avctx->slices as number of slices
Janne Grunau [Sun, 1 Jan 2012 19:24:24 +0000 (20:24 +0100)]
mpegenc: use avctx->slices as number of slices

Adds a new member to MpegEncContext to hold the number of used slice
contexts. Fixes segfaults with '-threads 17 -thread_type slice' and
fate-vsynth{1,2}-mpeg{2,4}thread{,_ilace} with --disable-pthreads.

8 years agov410enc: fix undefined signed left shift caused by integer promotion
Janne Grunau [Mon, 2 Jan 2012 14:47:26 +0000 (15:47 +0100)]
v410enc: fix undefined signed left shift caused by integer promotion

8 years agojpegdec: non interleaved rgb ljpeg support.
Michael Niedermayer [Mon, 2 Jan 2012 18:06:46 +0000 (19:06 +0100)]
jpegdec: non interleaved rgb ljpeg support.

Fixes Ticket856

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agojpegdec: 9-16 bit yuv/gray ljpeg support.
Michael Niedermayer [Mon, 2 Jan 2012 16:03:24 +0000 (17:03 +0100)]
jpegdec: 9-16 bit yuv/gray ljpeg support.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agojpegdec: Only enable rgb mode when there are 3 components.
Michael Niedermayer [Mon, 2 Jan 2012 16:02:41 +0000 (17:02 +0100)]
jpegdec: Only enable rgb mode when there are 3 components.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoRelease notes: mention cleaned up header includes
Reinhard Tartler [Mon, 2 Jan 2012 16:01:56 +0000 (17:01 +0100)]
Release notes: mention cleaned up header includes

A rebuild in debian revealed that this broke compilation of a number packages:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=siretart@tauware.de;tag=ftbfs-libav0.8

8 years agofix Changelog file
Reinhard Tartler [Mon, 2 Jan 2012 15:58:16 +0000 (16:58 +0100)]
fix Changelog file

Both the Indeo 4 decoder and the SMJPEG demuxer were included in the
0.8_beta1 release.

8 years agoFix a bunch of typos.
Diego Biurrun [Tue, 20 Dec 2011 14:39:22 +0000 (15:39 +0100)]
Fix a bunch of typos.

8 years agoDrop some pointless void* return value casts from av_malloc() invocations.
Diego Biurrun [Sat, 31 Dec 2011 15:30:59 +0000 (16:30 +0100)]
Drop some pointless void* return value casts from av_malloc() invocations.

8 years agoMAINTAINERS: update release maintainers
Michael Niedermayer [Mon, 2 Jan 2012 15:01:33 +0000 (16:01 +0100)]
MAINTAINERS: update release maintainers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovp3: fix regression with mplayer-crash.ogv
Michael Niedermayer [Mon, 2 Jan 2012 14:27:43 +0000 (15:27 +0100)]
vp3: fix regression with mplayer-crash.ogv

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomp3enc: fix playback with mp3 encoded files on some devices.
Clément Bœsch [Mon, 2 Jan 2012 08:39:11 +0000 (09:39 +0100)]
mp3enc: fix playback with mp3 encoded files on some devices.

This partially reverts 1fea432b; header variable needs to keep its value
in case it triggers "if (needed <= c.frame_size)".

8 years agodrawtext: fix hard dependency to lavc (timecode).
Clément Bœsch [Wed, 28 Dec 2011 09:09:45 +0000 (10:09 +0100)]
drawtext: fix hard dependency to lavc (timecode).

8 years agowavpack: fix typos in previous cosmetic clean-up commit
Justin Ruggles [Mon, 2 Jan 2012 13:54:30 +0000 (08:54 -0500)]
wavpack: fix typos in previous cosmetic clean-up commit

8 years agowavpack: cosmetics: K&R pretty-printing
Justin Ruggles [Mon, 2 Jan 2012 05:14:16 +0000 (00:14 -0500)]
wavpack: cosmetics: K&R pretty-printing

8 years agoavconv: remove the 'codec framerate is different from stream' warning
Anton Khirnov [Sat, 24 Dec 2011 14:08:07 +0000 (15:08 +0100)]
avconv: remove the 'codec framerate is different from stream' warning

Codec timebase is not framerate and the situation when it's different
from AVStream.r_frame_rate is quite common, nothing to warn about.

8 years agowavpack: determine sample_fmt before requesting a buffer
Hendrik Leppkes [Fri, 16 Dec 2011 21:41:29 +0000 (22:41 +0100)]
wavpack: determine sample_fmt before requesting a buffer

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
8 years agobmv audio: implement new audio decoding API
Justin Ruggles [Sat, 31 Dec 2011 20:47:30 +0000 (15:47 -0500)]
bmv audio: implement new audio decoding API

8 years agompegaudiodec: skip all channels when skipping granules
Justin Ruggles [Sun, 1 Jan 2012 00:24:30 +0000 (19:24 -0500)]
mpegaudiodec: skip all channels when skipping granules

Also fix calculation of new position when switching buffers.
This fixes "overread" error messages when seeking.

8 years agoflvdec: use av_uninit to silence compiler warnings
Jean First [Sun, 1 Jan 2012 22:59:00 +0000 (23:59 +0100)]
flvdec: use av_uninit to silence compiler warnings

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoy41p encoder and decoder
Paul B Mahol [Sun, 1 Jan 2012 12:16:42 +0000 (12:16 +0000)]
y41p encoder and decoder

y41p is a packed 12-bit 4:1:1 YUV format used by Brooktree.

Fixes issue 1123 / ticket #102.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kdec: av_log formatting use %tx instead of %x
Jean First [Sun, 1 Jan 2012 21:08:17 +0000 (22:08 +0100)]
j2kdec: av_log formatting use %tx instead of %x

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoRevert "mpegvideo: Do not error out on default values of thread_count."
Michael Niedermayer [Mon, 2 Jan 2012 02:10:52 +0000 (03:10 +0100)]
Revert "mpegvideo: Do not error out on default values of thread_count."

This is not needed anymore.

This reverts commit ca0350f49b82663123f7fb4fddcafa7c874a96a4.

8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 2 Jan 2012 01:48:34 +0000 (02:48 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avconv: make -frames work for all types of streams, not just video.
  bfi: K&R cosmetics
  bgmc: K&R cleanup
  rawdec: Set start_time to 0 for raw audio files.
  Detect 'yuv2' as rawvideo also in avi.
  rawdec: propagate pict_type information to the output frame
  rawdec: Support more QT 1bpp rawvideo files.
  avconv: free bitstream filters
  threads: limit the number of automatic threads to MAX_AUTO_THREADS
  avplay: K&R cleanup
  fate: use rgb24 as output format for dfa tests
  threads: set thread_count to 1 when thread support is disabled
  threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264

Conflicts:
ffplay.c
libavcodec/avcodec.h
libavcodec/pthread.c
libavcodec/version.h
tests/ref/fate/dfa1
tests/ref/fate/dfa10
tests/ref/fate/dfa11
tests/ref/fate/dfa2
tests/ref/fate/dfa3
tests/ref/fate/dfa4
tests/ref/fate/dfa5
tests/ref/fate/dfa6
tests/ref/fate/dfa7
tests/ref/fate/dfa8
tests/ref/fate/dfa9

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegenc: simplify muxrate calculation
Janne Grunau [Sun, 1 Jan 2012 22:32:15 +0000 (23:32 +0100)]
mpegenc: simplify muxrate calculation

The fate-h264-bsf-mp4toannexb failures were caused by an integer
overflow of the unneeded multiplication.

Inspired by patch by: Michael Niedermayer <michaelni@gmx.at>

8 years agoAdd missing PIX_FMT_NONE to libopenjpegenc
Carl Eugen Hoyos [Sun, 1 Jan 2012 20:52:45 +0000 (21:52 +0100)]
Add missing PIX_FMT_NONE to libopenjpegenc

fixes ticket #813

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Reviewed-by: Jean First <jeanfirst@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCosmetics: Replace -1 with PIX_FMT_NONE.
Paul B Mahol [Sun, 1 Jan 2012 22:23:58 +0000 (23:23 +0100)]
Cosmetics: Replace -1 with PIX_FMT_NONE.

8 years agoavconv: make -frames work for all types of streams, not just video.
Anton Khirnov [Sun, 1 Jan 2012 20:51:26 +0000 (21:51 +0100)]
avconv: make -frames work for all types of streams, not just video.

8 years agobfi: K&R cosmetics
Aneesh Dogra [Sun, 1 Jan 2012 16:37:54 +0000 (22:07 +0530)]
bfi: K&R cosmetics

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agobgmc: K&R cleanup
Aneesh Dogra [Sat, 31 Dec 2011 12:30:22 +0000 (18:00 +0530)]
bgmc: K&R cleanup

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agorawdec: Set start_time to 0 for raw audio files.
Reimar Döffinger [Wed, 28 Dec 2011 05:50:32 +0000 (00:50 -0500)]
rawdec: Set start_time to 0 for raw audio files.

None of the raw audio files have timestamps, thus setting
start_time to 0 should be reasonable.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoDetect 'yuv2' as rawvideo also in avi.
Carl Eugen Hoyos [Wed, 28 Dec 2011 05:50:31 +0000 (00:50 -0500)]
Detect 'yuv2' as rawvideo also in avi.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agorawdec: propagate pict_type information to the output frame
Stefano Sabatini [Wed, 28 Dec 2011 05:50:28 +0000 (00:50 -0500)]
rawdec: propagate pict_type information to the output frame

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agorawdec: Support more QT 1bpp rawvideo files.
Piotr Bandurski [Wed, 28 Dec 2011 05:50:25 +0000 (00:50 -0500)]
rawdec: Support more QT 1bpp rawvideo files.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoavconv: free bitstream filters
Janne Grunau [Sun, 1 Jan 2012 16:56:28 +0000 (17:56 +0100)]
avconv: free bitstream filters

8 years agoh264: Fix frame sync / random access handling.
Michael Niedermayer [Sat, 31 Dec 2011 21:16:57 +0000 (22:16 +0100)]
h264: Fix frame sync / random access handling.

It seems I have misunderstood the spec when I implemented this
originally.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: Fix recovery_frame initialization when recovery_frame is -1
Michael Niedermayer [Sat, 31 Dec 2011 21:15:45 +0000 (22:15 +0100)]
h264: Fix recovery_frame initialization when recovery_frame is -1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: reset picture->sync on allocation.
Michael Niedermayer [Sat, 31 Dec 2011 21:14:53 +0000 (22:14 +0100)]
h264: reset picture->sync on allocation.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomov: av_dlog use PRId64 instead of %ld
Jean First [Sun, 1 Jan 2012 15:26:15 +0000 (16:26 +0100)]
mov: av_dlog use PRId64 instead of %ld

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomxfdec: change av_log formatting %lx to PRIx64 and %li to PRIi64
Jean First [Sun, 1 Jan 2012 15:26:12 +0000 (16:26 +0100)]
mxfdec: change av_log formatting %lx to PRIx64 and %li to PRIi64

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agothreads: limit the number of automatic threads to MAX_AUTO_THREADS
Janne Grunau [Sun, 1 Jan 2012 16:35:16 +0000 (17:35 +0100)]
threads: limit the number of automatic threads to MAX_AUTO_THREADS

The extra thread added in {frame_}*thread_init was not taken into
account. Explicitly sets thread_count to 1 if only one CPU core was
detected. Also fixes two typos in comments.

8 years agoh264: add forgotten \n to "Invalid mix of idr and non-idr slices"
Michael Niedermayer [Sun, 1 Jan 2012 15:09:23 +0000 (16:09 +0100)]
h264: add forgotten \n to "Invalid mix of idr and non-idr slices"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: Print pass in NAL debug output
Michael Niedermayer [Sun, 1 Jan 2012 14:27:38 +0000 (15:27 +0100)]
h264: Print pass in NAL debug output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavplay: K&R cleanup
Aneesh Dogra [Sun, 1 Jan 2012 12:21:26 +0000 (17:51 +0530)]
avplay: K&R cleanup

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agofate: use rgb24 as output format for dfa tests
Janne Grunau [Sun, 1 Jan 2012 15:32:25 +0000 (16:32 +0100)]
fate: use rgb24 as output format for dfa tests

Palette is as supposed in native endianness. Converting the pal8 output
to rgb24 is thus necessary for identical CRCs on big and little endian
systems.

8 years agoaf_astreamsync: remove unused variable
Jean First [Sun, 1 Jan 2012 15:26:11 +0000 (16:26 +0100)]
af_astreamsync: remove unused variable

Signed-off-by: Jean First <jeanfirst@gmail.com>
8 years agovf_tinterlace: implement interlace mode 5
Stefano Sabatini [Sat, 31 Dec 2011 13:12:01 +0000 (14:12 +0100)]
vf_tinterlace: implement interlace mode 5

Allow creating interlaced bottom field first video.

8 years agothreads: set thread_count to 1 when thread support is disabled
Janne Grunau [Sun, 1 Jan 2012 13:17:32 +0000 (14:17 +0100)]
threads: set thread_count to 1 when thread support is disabled

8 years agothreads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264
Janne Grunau [Sun, 1 Jan 2012 13:21:50 +0000 (14:21 +0100)]
threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264

Some external codecs have their own code to determine the best number
of threads. This number is not necessary the number of cpu cores.
Thread_count will be only 0 if the codec has CODEC_CAP_AUTO_THREADS.

8 years agoUse quantizer value read from bitstream
Mashiat Sarker Shakkhar [Sun, 1 Jan 2012 08:32:10 +0000 (14:32 +0600)]
Use quantizer value read from bitstream

Currently the code initializes quantizer even
before reading it from bitstream and uses that
to dequantize samples.

8 years agoUpdate copyright year.
Carl Eugen Hoyos [Sun, 1 Jan 2012 04:04:25 +0000 (05:04 +0100)]
Update copyright year.

8 years agoSupport gray8a pam encoding.
Carl Eugen Hoyos [Sun, 1 Jan 2012 03:44:46 +0000 (04:44 +0100)]
Support gray8a pam encoding.

8 years agompegpsenc: Fix integer overflow of the muxrate calculation.
Michael Niedermayer [Sun, 1 Jan 2012 02:46:06 +0000 (03:46 +0100)]
mpegpsenc: Fix integer overflow of the muxrate calculation.

this should fix the failure of h264-bsf-mp4toannexb on freebsd/openbsd

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopthread: dont autoenable frame threads with visualization
Michael Niedermayer [Sun, 1 Jan 2012 01:54:31 +0000 (02:54 +0100)]
pthread: dont autoenable frame threads with visualization

This combination doesnt work

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