Alexander Strange
47775cb8de
Simplify loop condition for readability.
...
Originally committed as revision 14052 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
9f734c3b57
Reindent.
...
Originally committed as revision 14051 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
9588ec340c
Clone decode_cabac_residual() for DC residuals, to get rid of a bunch of branches in the main loop.
...
Originally committed as revision 14050 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
2e254bc583
Don't generate two copies of hl_decode_mb() under ENABLE_SMALL.
...
(assuming your compiler removes unused static functions)
Originally committed as revision 14049 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
fedec603db
Don't test for H264 encoding unless an encoder exists.
...
Originally committed as revision 14048 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Carl Eugen Hoyos
7e14f14584
Warn about unimplemented H264 feature.
...
Originally committed as revision 13542 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Pascal Massimino
ae899d12ae
in TRUNCATED mode, use residual fragments in ParseContext
...
for decoding the very last frame.
Originally committed as revision 13538 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
9c852bcf58
cosmetics: spelling typo fixes
...
Originally committed as revision 13489 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
f4433de9ef
consistency cosmetics: indices --> indexes
...
Originally committed as revision 13444 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
4806b9226c
print direct_spatial_mv_pred
...
Originally committed as revision 13409 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
bff2266a7f
Remove newly unused variables.
...
Originally committed as revision 13127 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
d2b54ec801
Use h->mb_xy directly in decode_cabac_residual().
...
Originally committed as revision 13126 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
64514ee8de
Store mb_xy in H264Context and only calculate it once per MB.
...
Originally committed as revision 13125 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Carl Eugen Hoyos
e0a0c85dbd
One const per declaration is enough.
...
Originally committed as revision 13079 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jason Garrett-Glaser
144783887c
Use a state machine to reduce branching logic in decode_cabac_residual.
...
Patch by Jason Garrett-Glaser (darkshikari gmail com)
Originally committed as revision 13060 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
6140271f54
Add some long names to AVCodec declarations.
...
patch by Stefano Sabatini, stefano.sabatini-lala poste it
Originally committed as revision 13017 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vladimir Voroshilov
159ef4b02a
Implement FFMAX3(a,b,c) - maximum over three arguments.
...
Originally committed as revision 12910 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
52cb7981e2
Redo r12838, this time using svn copy to create h264_i386.h from cabac.h.
...
Move decode_significance_x86() and decode_significance_8x8_x86() to
i386-specific file from cabac.h.
New file is h264-oriented and only included from h264.c
Resolves compilation when configured with --disable-optimizations due to
decode_significance_8x8_x86 using last_coeff_flag_offset_8x8, which is
only defined in h264.c
Originally committed as revision 12846 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
3aa9ede400
Revert 12838 to redo it the right way (use svn copy to create new
...
file based on old).
Originally committed as revision 12845 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
e6cfd8fffb
Move decode_significance_x86() and decode_significance_8x8_x86() to
...
i386-specific file from cabac.h.
New file is h264-oriented and only included from h264.c
Resolves compilation when configured with --disable-optimizations due to
decode_significance_8x8_x86 using last_coeff_flag_offset_8x8, which is
only defined in h264.c
Originally committed as revision 12838 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
faf3dfb94b
Avoid crash with idiotic cropping. Fixes crash with CVFC1_Sony_C.jsv
...
and closes issue333.
Originally committed as revision 12788 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
d952638699
typo: occured --> occurred
...
Originally committed as revision 12549 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Zuxy Meng
98a6fff98c
Apply 'cold' attribute to init/uninit functions in libavcodec
...
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
9d2cc8c1ee
If consumed does not match nalsize, favor nalsize.
...
Fixes issue385.
Originally committed as revision 12430 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
2cab640129
typo fixes
...
Originally committed as revision 12428 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
9701840bb5
add FF_ prefix to all (frame)_TYPE usage
...
Originally committed as revision 12399 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Loren Merritt
be0995b166
more aspect ratios added in one of the ammendments
...
Originally committed as revision 12282 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cea9642014
Fix ;;
...
Originally committed as revision 12153 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Loren Merritt
ffbc5e04ce
"swap first two elements of L1 if L0 and L1 are identical" applies after splitting the lists into fields
...
Originally committed as revision 11808 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Loren Merritt
02f7695b0b
fix mbaff diagonal neighbor mv
...
Originally committed as revision 11807 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Loren Merritt
50b3ab0fa5
mbaff spatial direct
...
Originally committed as revision 11806 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
30317501a0
consts
...
Originally committed as revision 11705 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
7526ade238
Indention, it seems i have forgotton to commit this.
...
Originally committed as revision 11702 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Andreas Öman
1710856cb1
Fix the following warnings:
...
h264.c:2093: warning: unused variable 's'
h264.c:2406: warning: suggest parentheses around arithmetic in operand of ^
h264.c:2412: warning: suggest parentheses around arithmetic in operand of ^
Originally committed as revision 11680 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
79db7ac6ef
Fix memory leak in h264 decoder. allocated_edge_emu_buffer was being allocated
...
in both mpegvideo and h264 decoder. Fixed by allowing all (master and duplicate)
contexts to fully initialize in MPV_frame_start and copying these into
H264Contexts.
Mailing list discussion:
[FFmpeg-devel] Memory leak in h264
Tue, 22 Jan 2008 15:22:55
Originally committed as revision 11657 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
766324fc49
Add and use DECLARE_ASM_CONST for constants used in assembler code.
...
Should make it easier to work around compilation problems with e.g. ICC.
Originally committed as revision 11641 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cb077b7aa3
Fix crash for CAVLC->CABAC switch caused by writing into NULL tables.
...
(iam not sure if this might have been exploitable)
fixes issue332 / CVCANLMA2_Sony_C.jsv
Other solutions which waste a few bytes less are welcome ...
Originally committed as revision 11605 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
6bf398a030
Add #undef printf and disable non-functional code to make test program compile.
...
Originally committed as revision 11604 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
07e4e3ea8b
Consistently use TEST as the preprocessor condition to enable test code.
...
Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reinhard Nissl
8293fea57e
Fix problem with multithreaded decoding, introduced by r11214.
...
Patch by Reinhard Nissl: rnissl gmx de
Originally committed as revision 11275 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
5d81d64175
cosmetics: comment typo fixes
...
Originally committed as revision 11232 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Kostya Shishkov
626464fb53
Make fill_rectangle() available for other decoders
...
Originally committed as revision 11219 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
9a1feb8608
Fix brain-dead parts of r11216, specifically:
...
Actually unreference removed pics
And check for too many reference frames as originally intended, not equal
to max reference frames.
Originally committed as revision 11218 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
aeb59e839f
Ensure that our total reference frame count does not exceed the SPS
...
max frame count, which is limited to less than the size of the
reference buffers, thereby preventing overflow.
Part of fix for issue 281.
Originally committed as revision 11216 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
41f7e2d11d
Actually return with an error condition if we're being asked to deal with too
...
many reference frames. Also check max num ref frames against our internal
ref buffer sizes.
Part of fix for roundup issue 281
Originally committed as revision 11215 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
33e0073129
Make h264 decoder conform to requirements of mpegvideo's MPV_frame_start.
...
Namely, that it should not be called if you are starting to decode a B
frame without any reference pictures.
Prevents an endless allocation cycle in MPV_frame_start that will end in
picture buffer overflow and abort.
Fixes roundup issue 216.
Originally committed as revision 11214 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
36e097bce4
Fix non_zero_count_cache for deblocking in field pictures.
...
Based on original patch by Martin Zlomek martin.zlomek a email D cz
ffmpeg-devel thread: H264: Fix non_zero_count_cache for deblocking in fields
Fri, 30 Nov 2007 9:58:23
Originally committed as revision 11212 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Panagiotis Issaris
b17270878e
Verify long_ref_count!=0. Fix issue 281.
...
Originally committed as revision 11171 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Jeff Downs
cf653d0811
Initialize function pointers used by error resilience code before any
...
potential error return from decode_slice_header.
Fixes issue 284.
Originally committed as revision 11168 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago