Michael Bradshaw
d1669e5fe3
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>
14 years ago
Paul B Mahol
69d766daa0
lavc: replace rest of deprecated SAMPLE_FMT_* with AV_SAMPLE_FMT_*
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Paul B Mahol
7099f36578
lavc: replace rest of deprecated FF_*_TYPE with AV_PICTURE_TYPE_*
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Jean First
f86c348d46
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>
14 years ago
Janne Grunau
881a5e047d
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.
14 years ago
Janne Grunau
264808219d
v410enc: fix undefined signed left shift caused by integer promotion
14 years ago
Michael Niedermayer
45552371e3
jpegdec: non interleaved rgb ljpeg support.
Fixes Ticket856
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
465eb0eb48
jpegdec: 9-16 bit yuv/gray ljpeg support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
24964f21e4
jpegdec: Only enable rgb mode when there are 3 components.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
8fd35b1aac
Fix a bunch of typos.
14 years ago
Diego Biurrun
44b0edda3f
Drop some pointless void* return value casts from av_malloc() invocations.
14 years ago
Michael Niedermayer
a2a12e3358
vp3: fix regression with mplayer-crash.ogv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
3a1867deac
wavpack: fix typos in previous cosmetic clean-up commit
14 years ago
Justin Ruggles
513c238fa9
wavpack: cosmetics: K&R pretty-printing
14 years ago
Hendrik Leppkes
14165fe125
wavpack: determine sample_fmt before requesting a buffer
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Justin Ruggles
8893fbdf7a
bmv audio: implement new audio decoding API
14 years ago
Justin Ruggles
03fafdec82
mpegaudiodec: skip all channels when skipping granules
Also fix calculation of new position when switching buffers.
This fixes "overread" error messages when seeking.
14 years ago
Paul B Mahol
dfa77dead2
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>
14 years ago
Jean First
b103156235
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>
14 years ago
Michael Niedermayer
157f29f9a6
Revert "mpegvideo: Do not error out on default values of thread_count."
This is not needed anymore.
This reverts commit ca0350f49b .
14 years ago
Carl Eugen Hoyos
ef611095f0
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>
14 years ago
Paul B Mahol
c0f7c574e9
Cosmetics: Replace -1 with PIX_FMT_NONE.
14 years ago
Aneesh Dogra
f7e30cc13b
bfi: K&R cosmetics
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Aneesh Dogra
87d9874864
bgmc: K&R cleanup
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
28b4af8e38
rawdec: propagate pict_type information to the output frame
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Piotr Bandurski
d3a5c26986
rawdec: Support more QT 1bpp rawvideo files.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
9ba43e50ef
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>
14 years ago
Michael Niedermayer
fba6777363
h264: Fix recovery_frame initialization when recovery_frame is -1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
36fa781bd6
h264: reset picture->sync on allocation.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
b12d217339
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.
14 years ago
Michael Niedermayer
ecb14b8af7
h264: add forgotten \n to "Invalid mix of idr and non-idr slices"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
393253b4b3
h264: Print pass in NAL debug output
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Janne Grunau
b6064d9a59
threads: set thread_count to 1 when thread support is disabled
14 years ago
Janne Grunau
b4d44a45f9
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.
14 years ago
Carl Eugen Hoyos
03d7d8faef
Support gray8a pam encoding.
14 years ago
Michael Niedermayer
57581e4110
pthread: dont autoenable frame threads with visualization
This combination doesnt work
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e404eee1e1
pthread: Limit automatic threads to mb_height.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
9c1f0493d5
Revert 464f26889c
The code is not needed for us and it doesnt work completely.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
099d6813c2
svq3: Fix memory corruption introduced by automatic thread_count.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
ca0350f49b
mpegvideo: Do not error out on default values of thread_count.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
714d2f9796
Only expand raw and packed 1bpp tiff horizontally if it is palettised.
14 years ago
Michael Niedermayer
9d9316ae34
h264: Fix seeking in 00017.MTS
Fixes Ticket852
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
464f26889c
mpegaudiodec: fix seeking.
The safe bitstream reader does not allow using skip_bits_long() to seek to a
point before the start of the buffer, which was needed by the mp3 decoder.
This change instead calculates the start point of the first valid granule and
skips to that position.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
14 years ago
Justin Ruggles
481a7ff5bd
mpegaudiodec: fix compilation when testing the unchecked bitstream reader
14 years ago
Janne Grunau
bcc7396065
threads: add sysconf based number of CPUs detection
Can act as fallback and should work on a couple of Unix systems.
14 years ago
Janne Grunau
937ff3a18a
threads: always include necessary headers for number of CPUs detection
Since the conditions for the actual usage are more specific a less
preferred method can be used. This would cause compilation errors
because necessary headers are not included.
14 years ago
Janne Grunau
e4e30256f8
threads: default to automatic thread count detection
14 years ago
Michael Niedermayer
810a14dbcc
aacdec: Evaluate further PCE elements.
Fixes Music\ Station\ Super\ Live\ -\ 2011.12.23.mkv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
f69a766d11
Fix mono* pam encoding.
14 years ago
Nicolas George
0098e79f8a
libvorbis: proper error logging and return.
14 years ago