Luca Barbato
1d20121b2e
Add ff_ to AVHWAccel decoders
...
That unbreaks compilation of vaapi and dxva2
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit d1b6f33bf2
)
2011-01-28 03:15:35 +01:00
Ronald S. Bultje
e3c5395402
VP8: don't overread edges on fourtap MC.
...
Fix C VP8 H+V MC functions which do two-dimensional 4/6-tap filters to
not overread beyond their edges if the second filter is 4-tap, since
the outer pixels aren't there anymore since
44002d8323
.
(cherry picked from commit 22893e10ae
)
2011-01-28 03:15:34 +01:00
Diego Elio Pettenò
e7e2df27f8
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69
)
2011-01-28 03:15:34 +01:00
Diego Elio Pettenò
4b21c38180
Make ff_cmap_read_palette static to libavcodec/iff.c. Delete iff.h.
...
The iff.h header only declared one function that is now static, the
libavformat/iff.c source file wasn't using it before. Drop the file
entirely.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 2d162e3825
)
2011-01-28 03:15:33 +01:00
Justin Ruggles
dff80041e3
Add ff_ prefix to ac3_common_init().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4c57cde942
)
2011-01-28 03:15:33 +01:00
Justin Ruggles
e732af87fc
ac3: Remove ff_ac3_critical_band_size_tab.
...
It is only used to generate band_start_tab, which about the same size, at
runtime, so it's simpler just to always hardcode band_start_tab.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 24e3ad3031
)
2011-01-28 03:15:32 +01:00
Diego Elio Pettenò
d4a847711d
Mark C base versions of FFT functions static to fft.c
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 7767d8d361
)
2011-01-28 03:15:32 +01:00
Marco Gittler
5f58927baf
Pass field order flag to libx264
...
Signed-off-by: Jason Garrett-Glaser <jason@x264.com>
(cherry picked from commit b09f548285
)
2011-01-28 03:15:32 +01:00
Diego Elio Pettenò
be61983d52
Make ff_add_wav static to ra144.c
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 1a88674862
)
2011-01-26 03:43:33 +01:00
Diego Elio Pettenò
877937b382
Make ff_h264_find_frame_end static to h264.c; delete h264_parser.h
...
The header is empty after making the function static, so delete it and
drop its usage.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 13eb6b9097
)
2011-01-26 03:43:32 +01:00
Diego Elio Pettenò
97c5b0fa95
Make ff_sin_tabs constant to rdft.c
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit d625a32d6b
)
2011-01-26 03:43:32 +01:00
Diego Elio Pettenò
e164553a82
Make ff_spatial_idwt_{init, slice} static to dwt.c
...
Both functions seem to be commanded by the ff_spatial_idwt function
instead.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit ebb06d96ed
)
2011-01-26 03:43:32 +01:00
Diego Elio Pettenò
ff0d737d6e
Make ff_png_pass_xmin and ff_png_pass_xshift static to png.c.
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit f2e246f576
)
2011-01-26 03:43:32 +01:00
Diego Elio Pettenò
998d9ee7a4
Remove unused ff_ac3_parse_header_full function.
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 676f1f533e
)
2011-01-26 03:43:32 +01:00
Diego Elio Pettenò
123241214c
Make ff_h264_decode_rbsp_trailing static to h264.c
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 8529731961
)
2011-01-26 03:43:31 +01:00
Ronald S. Bultje
ac3c04e4d6
Don't do edge emulation unless the edge pixels will be used in MC.
...
Do not emulate larger edges than we will actually use for this round of
MC. Decoding goes from avg+SE 29.972+/-0.023sec to 29.856+/-0.023, i.e.
0.12sec or ~0.4% faster.
(cherry picked from commit 44002d8323
)
2011-01-26 03:43:31 +01:00
Mans Rullgard
8169afdb15
ac3: remove ff_ac3_critical_band_size_tab[] external declaration
...
This fixes compilation broken by 6ed3b504f9
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 21c900129c
)
2011-01-26 03:43:30 +01:00
Diego Elio Pettenò
6b784f1b91
Move ff_ac3_critical_band_size_tab in ac3.c for non-hardcoded tables.
...
This symbol is only ever used to calculate the non-hardcoded tables, so
only enable it in that case, and static to the source unit that uses it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 6ed3b504f9
)
2011-01-26 03:43:30 +01:00
Diego Elio Pettenò
a172126c38
Remove unused ac3_parametric_bit_allocation function.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 362bfe2997
)
2011-01-26 03:43:30 +01:00
Mans Rullgard
8719b5dd60
latm: remove superflous #includes
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit e153e9a53a
)
2011-01-26 03:43:30 +01:00
Mans Rullgard
e164311179
Make denoise_dct_c() and dct_quantize_trellis_c() static in definitions
...
1d4da6a460
added static to the
prototypes for these fuctions. Adding it to the definitions
as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit aa61e39eac
)
2011-01-26 03:43:30 +01:00
Diego Elio Pettenò
11c7f64a9c
Don't declare a pcm_dvd encoder.
...
The PCM_DVD encoder would be left unused, as allcodecs.c properly declared
it as being decoder-only, but it would still be built into the object file.
Since there is no block of code to properly encode this PCM format, it's
not a full codec.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5b5083b5fe
)
2011-01-26 03:43:29 +01:00
Diego Elio 'Flameeyes' Pettenò
463532310a
Don't check for DEBUG before using dprintf.
...
The dprintf macro is no-op when DEBUG is unset, so there is no need to
put it conditional to DEBUG.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 73a0b19ba3
)
2011-01-26 03:43:29 +01:00
Diego Elio Pettenò
295edc7794
Make denoise_dct_c and dct_quantize_trellis_c static.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 1d4da6a460
)
2011-01-26 03:43:29 +01:00
Diego Elio Pettenò
291f326a2e
Make the ff_lockmgr_cb function pointer static to utils.c
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit bb875b75ba
)
2011-01-26 03:43:29 +01:00
Diego Elio Pettenò
ee7fed27d4
Rename sf_table in atrac.c unit to ff_atrac_sf_table.
...
This ensures a locally-unique name as well as marks the symbol as
FFmpeg-private at least by declaration.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 82e1f217f2
)
2011-01-26 03:43:29 +01:00
Diego Elio Pettenò
f7e5cc0a2c
Mark qmf_window table static to atrac.c unit.
...
The table is not used anywhere else on libavcodec.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 53493f9a81
)
2011-01-26 03:43:29 +01:00
Mans Rullgard
e243ed656c
x86: fix overflow in h264 8x8 planar prediction
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 80944df720
)
2011-01-26 03:43:29 +01:00
Kostya
69c78161d2
reindent after last commit
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit dacbcd170a
)
2011-01-26 03:43:28 +01:00
Kostya
8a485dd399
Extend WavPack demuxer and decoder to support >2 channel audio
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 3bdc886c22
)
2011-01-26 03:43:28 +01:00
Mans Rullgard
0fc1961ecc
ARM: NEON: fix overflow in h264 16x16 planar pred
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 78f318be59
)
2011-01-26 03:43:28 +01:00
Mans Rullgard
d112aa5acc
MIPS: use inline asm only when supported by compiler
...
(cherry picked from commit 7a5a168abe
)
2011-01-26 03:43:28 +01:00
Janne Grunau
604eb152fc
aacenc: fix typo in sync extension constant in 8ae0fa2
...
(cherry picked from commit 2fd9035ddc
)
2011-01-26 03:43:27 +01:00
Reimar Döffinger
e7b95918fc
Use av_fast_malloc instead of av_realloc.
...
This should be faster, is less code and fixes issue 2524
(allocation error would lead to crash).
2011-01-24 19:35:20 +01:00
Mans Rullgard
91d51ee4b5
Remove redundant checks against MIN_CACHE_BITS
...
With the removal of the libmpeg2 bitstream reader, MIN_CACHE_BITS
is always >= 25, so tests against smaller values can be removed.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit f162e988aa
)
2011-01-23 19:32:09 +01:00
Mans Rullgard
a4bff12cdd
get_bits: move tracing macros to end of file
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 611a6f59ce
)
2011-01-23 19:32:09 +01:00
Mans Rullgard
371cf026a7
Sanitise get_bits macros, part 2
...
These whitespace changes improve the readability of the get_bits
macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit fb5c841d5f
)
2011-01-23 19:32:09 +01:00
Mans Rullgard
d232e09d51
Sanitise get_bits macros, part 1
...
Some of the macros in get_bits.h include a final semicolon,
some do not. This removes these or adds do {} while(0) around
the macros as appropriate and adds semicolons where needed in
calling code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit bf5f9b528b
)
2011-01-23 19:32:08 +01:00
Mans Rullgard
990f213e57
Remove "libmpeg2" bitstream reader
...
Using the libmpeg2 reader causes errors in a multitude of places,
including MPEG and H264 codecs. As the advantage of this reader
is questionable, removing it seems the sensible course of action,
especially considering the simplifications this allows elsewhere
with the bit cache size increasing from 17 to 25 bits as minimum.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 938f72e199
)
2011-01-23 19:32:08 +01:00
Justin Ruggles
eddf8f4100
ac3enc: use dsputil functions in apply_window()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3b924294ea
)
2011-01-23 19:32:08 +01:00
Justin Ruggles
015f9f1ad3
Change DSPContext.vector_fmul() from dst=dst*src to dest=src0*src1.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 6eabb0d3ad
)
2011-01-23 19:32:08 +01:00
Ronald S. Bultje
fb397b1a19
Reindent.
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit fcb7e535dd
)
2011-01-23 19:32:08 +01:00
Ronald S. Bultje
2ed0f76655
Fix crash on resolution change (issue 2393).
...
Don't free RBSP tables (containing decoded NAL units) on resolution
change, because we actually need this data to decode the frame after
reiniting (with new resolution). Fixed issue 2393.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 9107892624
)
2011-01-23 19:32:08 +01:00
Mans Rullgard
60c99b5510
Make LOCAL_ALIGNED macro fully C99 compatible
...
C99 variadic macros require more arguments than there are named
parameters in the definition. This means we must use an extra
indirection to avoid having two different macros for arrays with
one resp more than one dimension.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 96aad41e81
)
2011-01-23 19:32:08 +01:00
Alex Converse
d5ec00ba57
Remove H.264 encoder fragments
...
It's incomplete, no one is working on it, and when someone asks about
working on it we advise them not to.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit ff3d43104f
)
2011-01-23 19:32:08 +01:00
Alex Converse
d67a6aa59c
aacenc: mark SBR absent
...
Use backwards compatible explicit signalling to denote the absence of
SBR.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 8ae0fa243e
)
2011-01-23 19:32:08 +01:00
Justin Ruggles
ff5eded449
10l: reverse the biquad coefficients.
...
I did not notice that the filter implementation uses a reversed history state.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 98cfadd648
)
2011-01-23 19:32:07 +01:00
Anssi Hannula
890b771cc1
libfaac: add recognized profiles array
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit b92f76e209
)
2011-01-23 19:32:07 +01:00
Clément Bœsch
204a18151c
Move ID3v1 skip from decoder to demuxer
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 045b80e52d
)
2011-01-23 19:32:07 +01:00
Anssi Hannula
6345dfcfd0
dca: add profile names
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit f4096bf6ee
)
2011-01-23 19:32:07 +01:00
Justin Ruggles
17d4f4558e
iir: Change dst param to float* in ff_iir_filter_flt().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 69915b48d6
)
2011-01-23 19:32:07 +01:00
Anssi Hannula
cf9cb1f99a
dca: consider a stream with XXCh/X96 in ExSS as DTS-HD HRA
...
DTS-HD HRA streams do not always have an XBR extension in the extension
substream. Instead they can have only XXCh and X96 extensions in
there and still be considered DTS-HD HRA.
This is also confirmed with Onkyo TX-SR607 receiver which recognizes
such a stream as HiRes Audio.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 8f4a5d225c
)
2011-01-23 19:32:07 +01:00
Justin Ruggles
384dbd617f
cosmetics related to LPC changes.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 1c189fc533
)
2011-01-23 19:32:06 +01:00
Justin Ruggles
7101b18508
Separate window function from autocorrelation.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 77a78e9bdc
)
2011-01-23 19:32:06 +01:00
Justin Ruggles
0d8837bdda
Move lpc_compute_autocorr() from DSPContext to a new struct LPCContext.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 56f8952b25
)
2011-01-23 19:32:06 +01:00
Mans Rullgard
cafa3edada
dca: pretty-print some tables
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 2611e52088
)
2011-01-21 20:36:01 +01:00
Justin Ruggles
a994f86196
iir: change filter type if/else to a switch.
...
Simplifies error handling and makes it easier to add additional filter types.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 0361d13cf3
)
2011-01-21 20:36:01 +01:00
Justin Ruggles
aa226b2460
Add biquad high-pass and low-pass IIR filters.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit fcdf0a43cd
)
2011-01-21 20:36:01 +01:00
Ronald S. Bultje
7f8c11b005
Set gray (128) U/V planes for chroma-less samples. Fixes two fate samples
...
when played with -flags emu_edge.
(cherry picked from commit 8bcfe7f7fd
)
2011-01-21 20:36:01 +01:00
Ronald S. Bultje
772225c041
Revert 2a1f431d38
, it broke H264 lossless.
...
(cherry picked from commit 66c6b5e2a5
)
2011-01-21 20:36:01 +01:00
Justin Ruggles
2293b0b698
Split out Butterworth filter coeff init to a separate function.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 30112adadf
)
2011-01-21 20:36:01 +01:00
Justin Ruggles
99c2111b12
cosmetics: vertical alignment and line wrap
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 75b98610a7
)
2011-01-21 20:36:01 +01:00
Justin Ruggles
20d1f6fec1
Add memory allocation failure checks to ff_iir_filter_init_coeffs().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d42dc217ed
)
2011-01-21 20:36:01 +01:00
Justin Ruggles
7891fdcc03
cosmetics: wrap long line
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit ebb230279a
)
2011-01-21 20:36:00 +01:00
Justin Ruggles
b3b8b930fc
Add function ff_iir_filter_flt() to accept floating-point input and output.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 0a3d7697b4
)
2011-01-21 20:36:00 +01:00
Ronald S. Bultje
e25f19a113
Fix horizontal/horizontal_up 8x8l intra prediction x86/simd functions.
...
The original functions did not work correctly for edge pixels, e.g.
when CODEC_FLAG_EMU_EDGE is set, leading to corrupt output in e.g. VLC.
Based on a patch by Daniel Kang <daniel d kang gmail com>.
Signed-off-by: Ronald S. Bultje <rsbultje gmail com>
(cherry picked from commit b9c7f66e6d
)
2011-01-21 20:35:46 +01:00
Justin Ruggles
f32e646d82
Fix use of sstep/dstep in ff_iir_filter().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit c3897d7690
)
2011-01-21 20:35:45 +01:00
Mans Rullgard
a6e5d231e9
a64enc: make PixelFormat arrays const
2011-01-18 20:48:24 +00:00
Mans Rullgard
ef4a65149d
Replace ASMALIGN() with .p2align
...
This macro has unconditionally used .p2align for a long time and
serves no useful purpose.
2011-01-18 20:48:24 +00:00
Mans Rullgard
ac3c9d0169
x86: remove VLA in ac3_downmix_sse
2011-01-18 20:48:24 +00:00
Janne Grunau
2c3589bfda
consolidate .gitignore patters into a single file
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-18 21:32:05 +01:00
Justin Ruggles
d425a03b59
cosmetics: reindent
2011-01-18 11:40:13 -05:00
Daniel Kang
1360f07e22
Add check for changing number of channels in DCA.
...
Fixes issue 2505.
2011-01-18 11:30:33 -05:00
Janne Grunau
db323491cd
update av_log_missing_feature() to git
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-17 22:13:50 +01:00
Janne Grunau
348b8218f7
convert svn:ignore properties to .gitignore files
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-17 15:50:14 +01:00
Alexander Strange
6ee99a7e13
VP3: remove an unnecessary static variable
...
Originally committed as revision 26398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-17 08:36:13 +00:00
Michael Niedermayer
013291501f
Allocate last picture for 4xm pfrm if its not allocated.
...
Fixes segfault and issue2527
Originally committed as revision 26397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 22:08:34 +00:00
Sascha Sommer
f62be777ee
support decoding of files that contain the number
...
of vector coded coefficients in their bitstream
fixes issue 2536
Originally committed as revision 26388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 16:39:53 +00:00
Carl Eugen Hoyos
a0f593d00d
Values >4 for lowres corrupt output.
...
Originally committed as revision 26386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 12:45:59 +00:00
Carl Eugen Hoyos
05503cee00
Since lowres == crop for bmp, remove it to avoid confusion.
...
Originally committed as revision 26384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 12:42:43 +00:00
Ronald S. Bultje
1b3e43e4fd
Fix overflow in pred16x16_plane x86 simd code. Fixes issue 2547.
...
Originally committed as revision 26381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 22:00:44 +00:00
Jason Garrett-Glaser
b9af15402d
Remove evil timers that snuck their way into r26375.
...
Originally committed as revision 26377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 18:14:36 +00:00
Jason Garrett-Glaser
fb2734c8a6
Fix r26375 on non-x86.
...
Originally committed as revision 26376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 18:13:40 +00:00
Jason Garrett-Glaser
f14bdd8e75
H.264: Partially inline CABAC residual decoding
...
Improves CABAC performance about ~1.2%.
Trick originates from x264 and has also been used in ffvp8. It's useful because
coded block flags are usually zero, so it helps to have the early termination
inlined into the main function.
Originally committed as revision 26375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 17:52:48 +00:00
Frank Barchard
925aa96915
Second hunk from secrity fix from google.
...
The hunk is not fully understood but it just makes a check tighter so its
safer for us to apply until it is fully understood.
Might fix issue 2550 (and Chrome issue 68115 and unknown CERT issues).
Our bugtracker issue though should stay open until this has been fully
investiagted
Patch by Frank Barchard, fbarchard at google
Originally committed as revision 26368 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 17:10:49 +00:00
Sascha Sommer
f734671925
do not read over the end of the packet
...
fixes issue 2543
Originally committed as revision 26367 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 16:39:52 +00:00
Frank Barchard
13184036a6
Check rangebits to avoid a possible crash.
...
Fixes issue 2548 (and Chrome issue 68115 and unknown CERT issues).
Patch by Frank Barchard, fbarchard at google
Originally committed as revision 26365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 16:19:06 +00:00
Kostya Shishkov
03ec42aa1c
Change some band size calculations in Bink decoder to use width in blocks
...
instead of real width, this fixes decoding of some Bink files with odd width.
Originally committed as revision 26364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 13:29:14 +00:00
Reimar Döffinger
b0c8b8a69d
Lagarith: fix decoding of one-coloured frames by reading the per-plane
...
color value instead of always taking 0 (resulting in green frames).
Fixes issue issue2531.
Originally committed as revision 26363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 12:44:48 +00:00
Daniel Kang
eb40d7ffa7
Check symbol validity to avoid a crash, fixes issue 2523.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26360 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 10:18:38 +00:00
Justin Ruggles
0db5d2b09e
cosmetics: spacing, line wrap, and remove unneeded braces
...
Originally committed as revision 26359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:59:31 +00:00
Justin Ruggles
964f2cf2a0
Process all EXP_REUSE blocks at once in exponent_min().
...
43% faster in function encode_exponents().
Originally committed as revision 26358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:59:21 +00:00
Justin Ruggles
7d87d56ff8
Take advantage of per-channel exponent and exponent strategy layout to
...
simplify and speed up encode_exponents().
8% faster in function.
Originally committed as revision 26357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:59:15 +00:00
Justin Ruggles
5bff8590f3
Simplify compute_exp_strategy() by passing a pointer to all exponents and
...
exponent strategies for a single channel to compute_exp_strategy_ch().
This allows for removal of the temporary pointer arrays.
Originally committed as revision 26356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:59:10 +00:00
Justin Ruggles
4b90c35d74
Use a local variable in the inner loop of group_exponents() to simplify the
...
code.
Originally committed as revision 26355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:59:04 +00:00
Justin Ruggles
a281c6509f
cosmetics: remove unneeded braces
...
Originally committed as revision 26354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:58:59 +00:00
Justin Ruggles
5fc2e0075d
cosmetics: rename block_num to blk for variable name consistency
...
Originally committed as revision 26353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:58:55 +00:00
Justin Ruggles
0429e4a6ca
Move exp_strategy from AC3Block to AC3EncodeContext in order to arrange by
...
channel first, then by block.
Originally committed as revision 26352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:58:50 +00:00
Justin Ruggles
7cc4be58b4
Rearrange exponent buffer to group all blocks for a single channel together.
...
This will allow for faster and simpler processing of all blocks at once.
Originally committed as revision 26351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:58:45 +00:00
Jason Garrett-Glaser
2a1f431d38
H.264/SVQ3: make chroma DC work the same way as luma DC
...
No speed improvement, but necessary for some future stuff.
Also opens up the possibility of asm chroma dc idct/dequant.
Originally committed as revision 26349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 01:10:46 +00:00
Jason Garrett-Glaser
290fabc684
Port SVQ3 to use the new mb_luma_dc method of storing luma DC coefficients.
...
Doesn't help speed as there isn't an asm implementation yet, but consistency
is a good thing.
Originally committed as revision 26348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 00:41:18 +00:00
Sascha Sommer
3cdf69eefa
also support decoding of AVPackets with multiple wma packets
...
fixes issue 2539
Originally committed as revision 26346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 23:58:55 +00:00
Jason Garrett-Glaser
65344775b8
H.264: Remove useless arg to chroma_dc_dequant_idct_c
...
Originally committed as revision 26345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 23:46:55 +00:00
Ronald S. Bultje
ec3233a855
Fix ff_pw_3 alignment.
...
Originally committed as revision 26344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 23:26:34 +00:00
Jason Garrett-Glaser
2e18660115
Fix SVQ3
...
Regression in r26336-7.
Originally committed as revision 26341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 22:23:42 +00:00
Jason Garrett-Glaser
bd11c7a1a8
Remove outdated comment in h264dsp.h
...
Since we no longer have non-transposed scantables, the problem it warns about
no longer exists.
Originally committed as revision 26339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 21:48:33 +00:00
Jason Garrett-Glaser
0d1d01cf70
Reindent after r26337.
...
Originally committed as revision 26338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 21:36:45 +00:00
Jason Garrett-Glaser
5657d14094
H.264: switch to x264-style tracking of luma/chroma DC NNZ
...
Useful so that we don't have to run the hierarchical DC iDCT if there aren't
any coefficients. Opens up some future opportunities for optimization as well.
Originally committed as revision 26337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 21:36:16 +00:00
Jason Garrett-Glaser
19fb234e4a
H.264: split luma dc idct out and implement MMX/SSE2 versions
...
About 2.5x the speed.
NOTE: the way that the asm code handles large qmuls is a bit suboptimal.
If x264-style dequant was used (separate shift and qmul values), it might
be possible to get some extra speed.
Originally committed as revision 26336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 21:34:25 +00:00
Jason Garrett-Glaser
ca32f7f208
H.264: eliminate non-transposed scantable support.
...
It was an ugly hack to begin with and didn't give any performance.
NOTE: this patch opens up some future simplifications to be made (such as
removing some of the scantables from H264Context) but doesn't take advantage
of them yet.
Originally committed as revision 26329 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 19:04:59 +00:00
Sascha Sommer
75e4efd2a7
add support for blocksize 64
...
fixes issue 2537 and 2538
Originally committed as revision 26328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 16:36:57 +00:00
Aurelien Jacobs
e83c716e16
don't complain about codec type/id mismatche for attachment streams
...
Originally committed as revision 26316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-12 00:33:22 +00:00
Daniel Kang
e048a9cab1
Do not crash for illegal sample size, fixes issue 2502.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-11 14:08:45 +00:00
Jason Garrett-Glaser
09fffe9bd4
H.264: fix grayscale decoding with explicit wpred
...
Originally committed as revision 26306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 23:42:45 +00:00
Carl Eugen Hoyos
8219782a6d
Do not stop decoding on pnm files with negative maxval.
...
Originally committed as revision 26304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 22:09:52 +00:00
Clément Bœsch
c56e71309e
In gif encoder, fix uninitialized value, patch by Clément Bœsch, ubitux at gmail dot com
...
Originally committed as revision 26303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 21:14:54 +00:00
Daniel Kang
94e58e5770
perform height sanity check in mmvideo decoder
...
Fixes issue2495
Original patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 12:23:03 +00:00
Peter Ross
091bc6ca8c
mmvideo: remove some conditional statements by limiting range of half_horiz and half_vert parameters to [0,1]
...
Originally committed as revision 26299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 12:16:33 +00:00
Clément Bœsch
c19a216af3
Handle ID3v1 tag while decoding mp[123] frames
...
patch by Clément Bœsch (ubitux at gmail)
Originally committed as revision 26297 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 11:36:11 +00:00
Daniel Kang
2843502ea4
Check for invalid decode op-codes, fixes issue 2522.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 10:47:10 +00:00
Daniel Kang
8e37a1deb3
Check for vectable ID > 0, fixes issue 2508.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 10:36:14 +00:00
Daniel Kang
43c34675af
Check for invalid motion vector, fixes issue 2521.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26293 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 10:28:06 +00:00
Daniel Kang
ebc3488300
Check for invalid maxval in pgm decoder, fixes issue 2518.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-10 00:42:57 +00:00
Anssi Hannula
39f4d32908
Fix reading over the end of the allocated buffer.
...
Patch by Anssi Hannula, anssi d hannula a iki d fi
Originally committed as revision 26291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 23:01:01 +00:00
Daniel Kang
b89f4fb190
Check for several overreads, fixes issue 2512.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 19:38:32 +00:00
Daniel Kang
a4db272a92
Return on negative soff sizes, fixes issue 2515.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 19:29:39 +00:00
Martin Storsjö
31561a98ae
Fix arm asm offsets for arm/mach-o
...
Originally committed as revision 26287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 15:23:00 +00:00
Luca Barbato
183cdf7163
Update asm offsets for arm
...
This unbreak ffmpeg build on arm/elf, arm/mach-o still need an update
Originally committed as revision 26286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 14:21:35 +00:00
Peter Ross
cd426563f4
fix indentation
...
Originally committed as revision 26280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 08:30:23 +00:00
Daniel Kang
062421e30d
eacmv: ensure second-last frame is allocated before referencing it
...
Fixes issue2513
Original patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 08:28:40 +00:00
Justin Ruggles
14207fd23e
Remove unneeded #include
...
Originally committed as revision 26272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-09 02:04:30 +00:00
Justin Ruggles
dc7e07ac1f
Add stereo rematrixing support to the AC-3 encoders.
...
This improves the audio quality significantly for stereo source with both the
fixed-point and floating-point AC-3 encoders.
Update acodec-ac3_fixed and seek-ac3_rm test references.
Originally committed as revision 26271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 23:21:17 +00:00
Carl Eugen Hoyos
d267b339e4
Lagarith decoder by Nathan Caldwell, saintdev at gmail
...
Originally committed as revision 26270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 21:22:15 +00:00
Kostya Shishkov
c392cc0a64
Limit number of samples decoded for WavPack mono mode, so decoded samples will
...
fit into output buffer.
Originally committed as revision 26269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 19:23:24 +00:00
Sascha Sommer
15a8bef0b6
skip unsupported postproc information
...
Originally committed as revision 26268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 15:49:29 +00:00
Sascha Sommer
b86dd1bf6d
add support for files that do not allow more than 4 subframes
...
Originally committed as revision 26267 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 15:38:14 +00:00
Sascha Sommer
d7fa58c049
fix indentation
...
Originally committed as revision 26266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 15:35:56 +00:00
Sascha Sommer
8b5a780e73
add support for files where the frames do not have a length prefix
...
Originally committed as revision 26265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 15:32:31 +00:00
Anssi Hannula
2a81f4bde5
Show profile in avcodec_string().
...
Patch by Anssi Hannula, anssi d hannula a iki d fi
Originally committed as revision 26264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-08 09:23:25 +00:00
Baptiste Coudurier
82dadb90a7
Fix bmp encoder with 8 bits format and correctly set bits_per_coded_sample
...
Originally committed as revision 26263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 23:56:47 +00:00
Michael Niedermayer
81c623fae0
Deprecate reordered_opaque in favor of pkt_pts/dts
...
Originally committed as revision 26262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 23:07:31 +00:00
Michael Niedermayer
1919feafb1
Add pkt_dts to AVFrame, this will in the future allow multithreading decoders
...
to not mess up dts
Originally committed as revision 26261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 23:07:28 +00:00
Michael Niedermayer
393cbb963b
Add AVFrame.pkt_pts that contains the correctly reordered AVPacket.pts
...
Originally committed as revision 26260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 23:07:24 +00:00
Anssi Hannula
060ec0a829
Add av_get_profile_name() to get profile names.
...
Patch by Anssi Hannula, anssi d hannula a iki d fi
Originally committed as revision 26259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 22:27:26 +00:00
Daniel Kang
f2953365d1
Check if buffer is large enough for given resolution.
...
Fixes issue 2501.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 21:54:52 +00:00
Daniel Kang
fea714ecd9
Do not overread input buffer.
...
Fixes issue 2503.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 19:55:22 +00:00
Carl Eugen Hoyos
b82579a6ec
Fail more gracefully for multichannel wavpack in another container.
...
Originally committed as revision 26253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-07 13:24:58 +00:00
Daniel Kang
65cd45a88c
Prevent a crash by sanity checking buffer reads.
...
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-06 23:14:27 +00:00
Anssi Hannula
f5a2d285f9
Export dca profile information.
...
Patch by Anssi Hannula anssi d hannula a iki d fi
Originally committed as revision 26250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-06 22:34:12 +00:00
Anssi Hannula
df1c694c58
Verify FSIZE96 when encountering X96 sync code.
...
Patch by Anssi Hannula, anssi d hannula a iki d fi
Originally committed as revision 26249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-06 22:24:39 +00:00