]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
frescor/ffmpeg.git
15 years agoRename pbBufPtr() to put_bits_ptr().
stefano [Mon, 13 Apr 2009 16:59:38 +0000 (16:59 +0000)]
Rename pbBufPtr() to put_bits_ptr().
The new name is more readable and consistent with the FFmpeg naming
style.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18497 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDo not use full include path for get_bits.h, since the header is in
stefano [Mon, 13 Apr 2009 16:47:17 +0000 (16:47 +0000)]
Do not use full include path for get_bits.h, since the header is in
the same directory.
Consistent with r16260.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18496 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacenc : do not #include libavutil/lls.h since lpc code is now
jai_menon [Mon, 13 Apr 2009 16:23:54 +0000 (16:23 +0000)]
flacenc : do not #include libavutil/lls.h since lpc code is now
separate.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18495 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRename bitstream.h to get_bits.h.
stefano [Mon, 13 Apr 2009 16:20:26 +0000 (16:20 +0000)]
Rename bitstream.h to get_bits.h.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18494 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoalacenc : cosmetics : remove misleading comment
jai_menon [Mon, 13 Apr 2009 15:11:40 +0000 (15:11 +0000)]
alacenc : cosmetics : remove misleading comment

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18493 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoseek inside buffer when offset is exactly at the end, fix seeking with memory ByteIOC...
bcoudurier [Mon, 13 Apr 2009 04:02:51 +0000 (04:02 +0000)]
seek inside buffer when offset is exactly at the end, fix seeking with memory ByteIOContext

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18487 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agomove audio buffers declarations and free them in av_exit
bcoudurier [Mon, 13 Apr 2009 03:55:26 +0000 (03:55 +0000)]
move audio buffers declarations and free them in av_exit

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18486 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agomove freeing code before exiting because of signal
bcoudurier [Mon, 13 Apr 2009 03:47:12 +0000 (03:47 +0000)]
move freeing code before exiting because of signal

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18485 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofree options contexts in av_exit, valgrind should be happy now
bcoudurier [Mon, 13 Apr 2009 03:43:29 +0000 (03:43 +0000)]
free options contexts in av_exit, valgrind should be happy now

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18484 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSet frame defaults in try_decode_frame.
bcoudurier [Mon, 13 Apr 2009 03:38:55 +0000 (03:38 +0000)]
Set frame defaults in try_decode_frame.
Fix:
==22211== Conditional jump or move depends on uninitialised value(s)
==22211==    at 0x811E692: ff_print_debug_info (mpegvideo.c:1137)
==22211==    by 0x82E6A7B: decode_frame (h264.c:7897)
==22211==    by 0x80F2823: avcodec_decode_video2 (utils.c:564)
[...]
==22211==  Uninitialised value was created by a stack allocation
==22211==    at 0x8064AA3: try_decode_frame (utils.c:1845)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18483 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofix indentation
bcoudurier [Mon, 13 Apr 2009 03:35:32 +0000 (03:35 +0000)]
fix indentation

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18482 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofix indentation and remove whitespace after return
bcoudurier [Mon, 13 Apr 2009 03:33:39 +0000 (03:33 +0000)]
fix indentation and remove whitespace after return

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18481 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoreindent
bcoudurier [Mon, 13 Apr 2009 03:32:02 +0000 (03:32 +0000)]
reindent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18480 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoInit state to -1 in h264 parser.
bcoudurier [Mon, 13 Apr 2009 03:29:19 +0000 (03:29 +0000)]
Init state to -1 in h264 parser.
Fix:
==22063== Conditional jump or move depends on uninitialised value(s)
==22063==    at 0x811A4B7: ff_find_start_code (mpegvideo.c:99)
==22063==    by 0x82F5B74: parse_nal_units (h264_parser.c:132)
==22063==    by 0x82F5A68: h264_parse (h264_parser.c:261)
[...]
==22063==  Uninitialised value was created by a stack allocation
==22063==    at 0x82F5AF5: parse_nal_units (h264_parser.c:112)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18479 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.
diego [Sun, 12 Apr 2009 22:48:44 +0000 (22:48 +0000)]
Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18478 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix wrong size computation for buffer. Patch is part of
reynaldo [Sun, 12 Apr 2009 21:48:43 +0000 (21:48 +0000)]
Fix wrong size computation for buffer. Patch is part of
netgem's changeset.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18477 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove gcc_fixes.h. It only contains workarounds for unsupported gcc versions.
diego [Sun, 12 Apr 2009 21:45:26 +0000 (21:45 +0000)]
Remove gcc_fixes.h. It only contains workarounds for unsupported gcc versions.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18476 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove AltiVec optimizations for Snow. They are hindering the development
diego [Sun, 12 Apr 2009 21:42:55 +0000 (21:42 +0000)]
Remove AltiVec optimizations for Snow. They are hindering the development
of Snow, which is still in flux.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18475 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix 2 access units in a packet mp4s.
michael [Sun, 12 Apr 2009 20:43:52 +0000 (20:43 +0000)]
Fix 2 access units in a packet mp4s.
Fixes issue944 and possibly others.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18474 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGet rid of the non sensical idea of using the current picture for missing
michael [Sun, 12 Apr 2009 20:40:18 +0000 (20:40 +0000)]
Get rid of the non sensical idea of using the current picture for missing
reference pictures.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18473 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFactorize field_end() out.
michael [Sun, 12 Apr 2009 20:21:23 +0000 (20:21 +0000)]
Factorize field_end() out.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18472 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAssert that the first list1 entry is a reference frame.
michael [Sun, 12 Apr 2009 13:58:03 +0000 (13:58 +0000)]
Assert that the first list1 entry is a reference frame.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18471 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a av_fast_malloc function and replace several uses of av_fast_realloc,
reimar [Sun, 12 Apr 2009 13:17:37 +0000 (13:17 +0000)]
Add a av_fast_malloc function and replace several uses of av_fast_realloc,
thus avoiding potential memleaks and pointless memcpys.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18470 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse void * instead of uint8_t * for the destination buffer for dsp.bswap_buf
reimar [Sun, 12 Apr 2009 12:25:53 +0000 (12:25 +0000)]
Use void * instead of uint8_t * for the destination buffer for dsp.bswap_buf
where easily possible (mimic, eatqi, 4xm).
This allows to avoid a typecast.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18469 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoav_destruct_packet_nofree deprecation explained in APIchanges
reimar [Sun, 12 Apr 2009 12:03:12 +0000 (12:03 +0000)]
av_destruct_packet_nofree deprecation explained in APIchanges

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18468 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders
reimar [Sun, 12 Apr 2009 09:33:38 +0000 (09:33 +0000)]
Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18467 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDocument pbBufPtr().
stefano [Sun, 12 Apr 2009 09:06:17 +0000 (09:06 +0000)]
Document pbBufPtr().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18466 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoremove useless wrapper
bcoudurier [Sun, 12 Apr 2009 09:04:12 +0000 (09:04 +0000)]
remove useless wrapper

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18465 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove ea demuxer messages that are irrelevant to ordinary users from
reimar [Sun, 12 Apr 2009 08:53:22 +0000 (08:53 +0000)]
Move ea demuxer messages that are irrelevant to ordinary users from
AV_LOG_INFO to AV_LOG_DEBUG.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18464 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoremove useless wrapper
bcoudurier [Sun, 12 Apr 2009 08:52:16 +0000 (08:52 +0000)]
remove useless wrapper

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18463 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSlightly improve/correct description of wc3_pal_lookup
reimar [Sun, 12 Apr 2009 08:49:20 +0000 (08:49 +0000)]
Slightly improve/correct description of wc3_pal_lookup

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18462 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSplit bitstream.h, put the bitstream writer stuff in the new file
stefano [Sun, 12 Apr 2009 08:35:26 +0000 (08:35 +0000)]
Split bitstream.h, put the bitstream writer stuff in the new file
put_bits.h.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18461 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDisable metadata reading, yes id like to know what this code is good for
michael [Sun, 12 Apr 2009 04:01:03 +0000 (04:01 +0000)]
Disable metadata reading, yes id like to know what this code is good for
and this is the easiest way to. It would be alot of messy code we can drop
if it is useless.
As a sideeffect this fixes issue977.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18460 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd names for 5.0 and 5.1 back speaker channel layouts.
jbr [Sun, 12 Apr 2009 03:26:20 +0000 (03:26 +0000)]
Add names for 5.0 and 5.1 back speaker channel layouts.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18459 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoreplace DEBUG_SI with DEBUG and use dprintf
bcoudurier [Sun, 12 Apr 2009 03:08:46 +0000 (03:08 +0000)]
replace DEBUG_SI with DEBUG and use dprintf

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18458 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSet stream type to ac3 if registration descriptor is present.
bcoudurier [Sun, 12 Apr 2009 02:39:16 +0000 (02:39 +0000)]
Set stream type to ac3 if registration descriptor is present.
Based on patch by Nico Sabi, nicola dot sabbi at poste dot it

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18457 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agosimplify registration descriptor parsing with bytstream get functions
bcoudurier [Sun, 12 Apr 2009 02:32:02 +0000 (02:32 +0000)]
simplify registration descriptor parsing with bytstream get functions

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18456 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoOk, ts demuxer is more complicated than I thought
bcoudurier [Sun, 12 Apr 2009 02:19:40 +0000 (02:19 +0000)]
Ok, ts demuxer is more complicated than I thought
Revert r18454 and fix correctly #700
Stop parsing if end of buffer is reached while reading
patch by Björn Axelsson, bjorn dot axelsson at intinor dot se

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18455 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofix end of buffer check, fix hang_read_header.h264.ts
bcoudurier [Sun, 12 Apr 2009 01:37:34 +0000 (01:37 +0000)]
fix end of buffer check, fix hang_read_header.h264.ts

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18454 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agofix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples
bcoudurier [Sun, 12 Apr 2009 00:25:37 +0000 (00:25 +0000)]
fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18453 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSimplify packet duplication code in ff_interleave_add_packet.
reimar [Sat, 11 Apr 2009 22:38:00 +0000 (22:38 +0000)]
Simplify packet duplication code in ff_interleave_add_packet.
Behaviour only changes if pkt->destuct neither av_destruct_packet,
av_destruct_packet_nofree nor NULL, in which case the new code avoids a double free.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18452 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix initialization of avpkt in output_packet().
stefano [Sat, 11 Apr 2009 22:04:52 +0000 (22:04 +0000)]
Fix initialization of avpkt in output_packet().

Patch by Thilo Borgmann thilo.surname AT googlemaildotcom.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18451 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix "unrecognized WC3 chunk" debug output which was broken r18444 due to sign expansion.
reimar [Sat, 11 Apr 2009 21:45:57 +0000 (21:45 +0000)]
Fix "unrecognized WC3 chunk" debug output which was broken r18444 due to sign expansion.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18450 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix documentation for avcodec_encode_audio(), in the case of PCM audio
stefano [Sat, 11 Apr 2009 21:14:29 +0000 (21:14 +0000)]
Fix documentation for avcodec_encode_audio(), in the case of PCM audio
the output buffer size may be less than FF_MIN_BUFFER_SIZE.

Patch by John Fletcher john.surname AT rd . bbc . co . uk.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18449 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDocument the 'size' parameter of set_put_bits_buffer_size().
stefano [Sat, 11 Apr 2009 21:04:26 +0000 (21:04 +0000)]
Document the 'size' parameter of set_put_bits_buffer_size().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18448 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDocument ff_put_string().
stefano [Sat, 11 Apr 2009 21:01:30 +0000 (21:01 +0000)]
Document ff_put_string().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18447 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agowc3movie: return partial packets if not all data can be read.
reimar [Sat, 11 Apr 2009 20:48:56 +0000 (20:48 +0000)]
wc3movie: return partial packets if not all data can be read.
This is consistent with other demuxer's behaviour and avoids a memleak.
It also returns the error from av_get_packet instead of always AVERROR(EIO).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18446 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoExplain the purpose of the wc3_pal_lookup and the formula that was used to
reimar [Sat, 11 Apr 2009 20:08:16 +0000 (20:08 +0000)]
Explain the purpose of the wc3_pal_lookup and the formula that was used to
calculate it.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18445 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse get_le32/get_be32 in wc3movie demuxer instead of reading everything into
reimar [Sat, 11 Apr 2009 18:58:55 +0000 (18:58 +0000)]
Use get_le32/get_be32 in wc3movie demuxer instead of reading everything into
a buffer first.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18444 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace deprecated FF_MM_MMXEXT flag with FF_MM_MMX2.
stefano [Sat, 11 Apr 2009 18:12:23 +0000 (18:12 +0000)]
Replace deprecated FF_MM_MMXEXT flag with FF_MM_MMX2.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18443 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRename the 'put_zero' parameter of ff_put_string() to
stefano [Sat, 11 Apr 2009 15:54:21 +0000 (15:54 +0000)]
Rename the 'put_zero' parameter of ff_put_string() to
'terminate_string'.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18442 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd documentation for skip_put_bytes().
stefano [Sat, 11 Apr 2009 14:49:46 +0000 (14:49 +0000)]
Add documentation for skip_put_bytes().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18441 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDoxygenate ff_copy_bits().
stefano [Sat, 11 Apr 2009 14:47:35 +0000 (14:47 +0000)]
Doxygenate ff_copy_bits().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18440 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFactorize declaration for the two variants of put_bits().
stefano [Sat, 11 Apr 2009 14:19:09 +0000 (14:19 +0000)]
Factorize declaration for the two variants of put_bits().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18439 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years ago2 INIT_VLC_USE_STATIC cases, carl missed.
michael [Sat, 11 Apr 2009 14:16:30 +0000 (14:16 +0000)]
2 INIT_VLC_USE_STATIC cases, carl missed.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18438 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoget rid of INIT_VLC_USE_STATIC in h261.
michael [Sat, 11 Apr 2009 13:58:18 +0000 (13:58 +0000)]
get rid of INIT_VLC_USE_STATIC in h261.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18437 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGet rid of INIT_VLC_USE_STATIC in rv10/rv20.
michael [Sat, 11 Apr 2009 13:53:34 +0000 (13:53 +0000)]
Get rid of INIT_VLC_USE_STATIC in rv10/rv20.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18436 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGet rid of INIT_VLC_USE_STATIC in 4xm.
michael [Sat, 11 Apr 2009 13:43:09 +0000 (13:43 +0000)]
Get rid of INIT_VLC_USE_STATIC in 4xm.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18435 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGet rid of INIT_VLC_USE_STATIC in asv1.
michael [Sat, 11 Apr 2009 13:40:39 +0000 (13:40 +0000)]
Get rid of INIT_VLC_USE_STATIC in asv1.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18434 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGet rid of INIT_VLC_USE_STATIC in msmpeg4
michael [Sat, 11 Apr 2009 13:29:05 +0000 (13:29 +0000)]
Get rid of INIT_VLC_USE_STATIC in msmpeg4

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18433 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoClarify documentation for put_bits_count().
stefano [Sat, 11 Apr 2009 13:04:33 +0000 (13:04 +0000)]
Clarify documentation for put_bits_count().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18432 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGet rid of av_destruct_packet_nofree and use NULL instead.
reimar [Sat, 11 Apr 2009 12:42:29 +0000 (12:42 +0000)]
Get rid of av_destruct_packet_nofree and use NULL instead.
It is still used in comparisons to keep ABI compatibility.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18431 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse INIT_VLC_USE_STATIC and not its value "1".
cehoyos [Sat, 11 Apr 2009 11:47:15 +0000 (11:47 +0000)]
Use INIT_VLC_USE_STATIC and not its value "1".

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18430 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReindent
reimar [Sat, 11 Apr 2009 10:41:06 +0000 (10:41 +0000)]
Reindent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18429 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake electronicarts demuxer return partial frames, this is the default
reimar [Sat, 11 Apr 2009 10:38:56 +0000 (10:38 +0000)]
Make electronicarts demuxer return partial frames, this is the default
behaviour of av_get_packet and should not be override without good reason.
As a side effect this fixes the memleak described in issue 956.
Also return the exact error code from av_get_packet instead of AVERROR(EIO).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18428 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDocument align_put_bits().
stefano [Fri, 10 Apr 2009 22:29:56 +0000 (22:29 +0000)]
Document align_put_bits().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18427 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDoxygenate flush_put_bits() documentation.
stefano [Fri, 10 Apr 2009 22:27:29 +0000 (22:27 +0000)]
Doxygenate flush_put_bits() documentation.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18426 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDoxygenate put_bits_count() documentation.
stefano [Fri, 10 Apr 2009 22:14:45 +0000 (22:14 +0000)]
Doxygenate put_bits_count() documentation.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18425 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix comment: gcc 2.95.3 binaries decode ac3 fine if SSE is available and
cehoyos [Fri, 10 Apr 2009 17:46:42 +0000 (17:46 +0000)]
Fix comment: gcc 2.95.3 binaries decode ac3 fine if SSE is available and
not disabled.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18424 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDoxygenate init_put_bits().
stefano [Fri, 10 Apr 2009 17:30:42 +0000 (17:30 +0000)]
Doxygenate init_put_bits().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18423 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
diego [Fri, 10 Apr 2009 17:23:38 +0000 (17:23 +0000)]
cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18422 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd support to CorePNG P-frames.
stefano [Fri, 10 Apr 2009 17:16:19 +0000 (17:16 +0000)]
Add support to CorePNG P-frames.

Patch by Thilo Borgmann thilo DOT borgmann A googlemail com.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18421 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace rand() usage by av_lfg_get().
diego [Fri, 10 Apr 2009 17:12:36 +0000 (17:12 +0000)]
Replace rand() usage by av_lfg_get().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18420 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: Align output columns.
diego [Fri, 10 Apr 2009 15:16:11 +0000 (15:16 +0000)]
cosmetics: Align output columns.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18419 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoLoop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
reimar [Fri, 10 Apr 2009 14:30:04 +0000 (14:30 +0000)]
Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
contexts, this avoids a crash when freeing the H.264 parser context introduced in
r18406, since h->s.avctx is NULL there.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18418 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse the new avcodec_decode_* API.
stefano [Fri, 10 Apr 2009 12:53:22 +0000 (12:53 +0000)]
Use the new avcodec_decode_* API.

Patch by Thilo Borgmann th_lo.borgm_n_@goog_email.co_.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18417 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoremove useless duplication of what av_new_stream() already does
aurel [Fri, 10 Apr 2009 12:49:53 +0000 (12:49 +0000)]
remove useless duplication of what av_new_stream() already does

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18416 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd 'PNG1' to PNG fourcc codes.
stefano [Fri, 10 Apr 2009 12:18:04 +0000 (12:18 +0000)]
Add 'PNG1' to PNG fourcc codes.

Patch by Thilo Borgmann thilo DOT borgmann _AT_ gXXglemail.cXm.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18415 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse the new avcodec_decode_* API.
stefano [Fri, 10 Apr 2009 12:07:06 +0000 (12:07 +0000)]
Use the new avcodec_decode_* API.

Patch by Thilo Borgmann thilo.borgmann * googlemail ! com.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18414 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove unused variables along with the related warnings.
diego [Fri, 10 Apr 2009 11:33:14 +0000 (11:33 +0000)]
Remove unused variables along with the related warnings.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18413 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoIgnore .d and .ho files.
diego [Fri, 10 Apr 2009 11:32:09 +0000 (11:32 +0000)]
Ignore .d and .ho files.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18412 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd forgotten void return type to ff_h264_free_context
reimar [Fri, 10 Apr 2009 11:31:55 +0000 (11:31 +0000)]
Add forgotten void return type to ff_h264_free_context

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18411 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix sigill on non-MMX2 CPUs.
diego [Fri, 10 Apr 2009 11:29:51 +0000 (11:29 +0000)]
Fix sigill on non-MMX2 CPUs.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18410 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse the new avcodec_decode_* API.
stefano [Fri, 10 Apr 2009 11:07:52 +0000 (11:07 +0000)]
Use the new avcodec_decode_* API.

Patch by Thilo Borgmann name.surname AT googlemail.com.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18409 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake try_decode_frame() use the new avcodec_decode_* API.
stefano [Fri, 10 Apr 2009 11:03:06 +0000 (11:03 +0000)]
Make try_decode_frame() use the new avcodec_decode_* API.

Patch by Thilo Borgmann thilo.borgmann AT g00glemail dot com.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18408 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake sure error resilience does not try to use unavailable reference frames.
reimar [Fri, 10 Apr 2009 07:17:30 +0000 (07:17 +0000)]
Make sure error resilience does not try to use unavailable reference frames.
Fixes the crash described in issue 706.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18407 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a ff_h264_free_context function and call it from the H.264 parser.
reimar [Fri, 10 Apr 2009 07:01:55 +0000 (07:01 +0000)]
Add a ff_h264_free_context function and call it from the H.264 parser.
This ensures that the parser will no longer leak memory for all SPS/PPS it encounters.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18406 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake sure mpeg2 has its height rounded up to 32 as that is needed
michael [Fri, 10 Apr 2009 00:09:07 +0000 (00:09 +0000)]
Make sure mpeg2 has its height rounded up to 32 as that is needed
for iterlaced stuff.
This might have been exploitable when emu edge was not set though
note this bug has been introduced just a few days ago.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18405 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDont use SSE2 SAD for snow as it requires more alignment than can be
michael [Thu, 9 Apr 2009 21:53:48 +0000 (21:53 +0000)]
Dont use SSE2 SAD for snow as it requires more alignment than can be
easily provided.
Fixes issue315.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18404 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix documentation for the "-ps" option
lucabe [Thu, 9 Apr 2009 21:52:12 +0000 (21:52 +0000)]
Fix documentation for the "-ps" option
Patch by Martin Storsjö (martin AT martin DOT st)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18403 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAAC packetiser cleanup: use consts instead of #defines
lucabe [Thu, 9 Apr 2009 21:48:45 +0000 (21:48 +0000)]
AAC packetiser cleanup: use consts instead of #defines

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18402 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAAC packetiser cleanup: remove check for a condition that cannot happen
lucabe [Thu, 9 Apr 2009 21:39:07 +0000 (21:39 +0000)]
AAC packetiser cleanup: remove check for a condition that cannot happen

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18401 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix two checks in the AAC packetiser, which were too conservative
lucabe [Thu, 9 Apr 2009 21:37:11 +0000 (21:37 +0000)]
Fix two checks in the AAC packetiser, which were too conservative
Patch by Martin Storsjö (martin AT martin DOT st)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18400 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake sure the next used frame is released so get_buffer() wont fail.
michael [Thu, 9 Apr 2009 21:19:25 +0000 (21:19 +0000)]
Make sure the next used frame is released so get_buffer() wont fail.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18399 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove release_buffer() up so it is prior to a future call to it.
michael [Thu, 9 Apr 2009 21:17:53 +0000 (21:17 +0000)]
Move release_buffer() up so it is prior to a future call to it.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18398 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFactorize release_buffer()
michael [Thu, 9 Apr 2009 20:44:18 +0000 (20:44 +0000)]
Factorize release_buffer()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18397 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake sure spatial_decomposition_count is not too large for picture size.
michael [Thu, 9 Apr 2009 20:23:13 +0000 (20:23 +0000)]
Make sure spatial_decomposition_count is not too large for picture size.
this led to an infinite loop in mirror().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18396 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSkip non intra frames that have no reference frames.
michael [Thu, 9 Apr 2009 20:13:35 +0000 (20:13 +0000)]
Skip non intra frames that have no reference frames.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18395 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake sure spatial_decomposition_count is >0.
michael [Thu, 9 Apr 2009 19:45:10 +0000 (19:45 +0000)]
Make sure spatial_decomposition_count is >0.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18394 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake sure the block array is of the correct size.
michael [Thu, 9 Apr 2009 18:47:50 +0000 (18:47 +0000)]
Make sure the block array is of the correct size.
This might have been exploitable.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18393 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b