Commit Graph

19563 Commits

Author SHA1 Message Date
Baptiste Coudurier
5973490a8f move freeing code before exiting because of signal
Originally committed as revision 18485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:47:12 +00:00
Baptiste Coudurier
3b80107596 free options contexts in av_exit, valgrind should be happy now
Originally committed as revision 18484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:43:29 +00:00
Baptiste Coudurier
1bd280f730 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)

Originally committed as revision 18483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:38:55 +00:00
Baptiste Coudurier
1b66180263 fix indentation
Originally committed as revision 18482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:35:32 +00:00
Baptiste Coudurier
e44745f1a8 fix indentation and remove whitespace after return
Originally committed as revision 18481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:33:39 +00:00
Baptiste Coudurier
e472ea34c4 reindent
Originally committed as revision 18480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:32:02 +00:00
Baptiste Coudurier
8fa0ae060b 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)

Originally committed as revision 18479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:29:19 +00:00
Diego Biurrun
cc3a248603 Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.
Originally committed as revision 29175 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-12 22:49:58 +00:00
Diego Biurrun
c5662879ff Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.
Originally committed as revision 18478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 22:48:44 +00:00
Diego Biurrun
457eed7204 whitespace cosmetics: Reindent a few lines and break a few excessively long lines.
Originally committed as revision 29174 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-12 22:43:03 +00:00
Reynaldo H. Verdejo Pinochet
8bf7a510b9 Fix wrong size computation for buffer. Patch is part of
netgem's changeset.

Originally committed as revision 18477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 21:48:43 +00:00
Diego Biurrun
5137235e0c Remove gcc_fixes.h. It only contains workarounds for unsupported gcc versions.
Originally committed as revision 18476 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 21:45:26 +00:00
Diego Biurrun
788cca4135 Remove AltiVec optimizations for Snow. They are hindering the development
of Snow, which is still in flux.

Originally committed as revision 18475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 21:42:55 +00:00
Michael Niedermayer
d225a1e248 Fix 2 access units in a packet mp4s.
Fixes issue944 and possibly others.

Originally committed as revision 18474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:43:52 +00:00
Michael Niedermayer
ead793358a Get rid of the non sensical idea of using the current picture for missing
reference pictures.

Originally committed as revision 18473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:40:18 +00:00
Michael Niedermayer
256299d302 Factorize field_end() out.
Originally committed as revision 18472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:21:23 +00:00
Michael Niedermayer
7824b129a0 Assert that the first list1 entry is a reference frame.
Originally committed as revision 18471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:58:03 +00:00
Reimar Döffinger
238ef6dadd Add a av_fast_malloc function and replace several uses of av_fast_realloc,
thus avoiding potential memleaks and pointless memcpys.

Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:17:37 +00:00
Reimar Döffinger
9bf993a5b5 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.

Originally committed as revision 18469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 12:25:53 +00:00
Reimar Döffinger
0c13bbf509 av_destruct_packet_nofree deprecation explained in APIchanges
Originally committed as revision 18468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 12:03:12 +00:00
Reimar Döffinger
55775b099d Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders
Originally committed as revision 18467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:33:38 +00:00
Stefano Sabatini
53bd67ec89 Document pbBufPtr().
Originally committed as revision 18466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:06:17 +00:00
Baptiste Coudurier
c950c25ac0 remove useless wrapper
Originally committed as revision 18465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:04:12 +00:00
Reimar Döffinger
c96495e75c Move ea demuxer messages that are irrelevant to ordinary users from
AV_LOG_INFO to AV_LOG_DEBUG.

Originally committed as revision 18464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 08:53:22 +00:00
Baptiste Coudurier
7b9677f6b0 remove useless wrapper
Originally committed as revision 18463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 08:52:16 +00:00
Reimar Döffinger
f28c4e756f Slightly improve/correct description of wc3_pal_lookup
Originally committed as revision 18462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 08:49:20 +00:00
Stefano Sabatini
b275500706 Split bitstream.h, put the bitstream writer stuff in the new file
put_bits.h.

Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 08:35:26 +00:00
Michael Niedermayer
77daaf6748 Disable metadata reading. Yes, I would like to know what this code is good for
and this is the easiest way to. It would be a lot of messy code we can drop
if it is useless.
As a sideeffect this fixes issue977.

Originally committed as revision 18460 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 04:01:03 +00:00
Justin Ruggles
f79e331f34 Add names for 5.0 and 5.1 back speaker channel layouts.
Originally committed as revision 18459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 03:26:20 +00:00
Baptiste Coudurier
ebcf352a25 replace DEBUG_SI with DEBUG and use dprintf
Originally committed as revision 18458 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 03:08:46 +00:00
Baptiste Coudurier
495b37664d Set stream type to ac3 if registration descriptor is present.
Based on patch by Nico Sabi, nicola dot sabbi at poste dot it

Originally committed as revision 18457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 02:39:16 +00:00
Baptiste Coudurier
4f1db48e88 simplify registration descriptor parsing with bytestream get functions
Originally committed as revision 18456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 02:32:02 +00:00
Björn Axelsson
a4d2af9b96 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

Originally committed as revision 18455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 02:19:40 +00:00
Baptiste Coudurier
2b97246ec2 fix end of buffer check, fix hang_read_header.h264.ts
Originally committed as revision 18454 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 01:37:34 +00:00
Baptiste Coudurier
a3d23e15fb fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples
Originally committed as revision 18453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 00:25:37 +00:00
Reimar Döffinger
d2e63e8b05 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.

Originally committed as revision 18452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 22:38:00 +00:00
Thilo Borgmann
031e14ea79 Fix initialization of avpkt in output_packet().
Patch by Thilo Borgmann thilo.surname AT googlemaildotcom.

Originally committed as revision 18451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 22:04:52 +00:00
Reimar Döffinger
7ce0420983 Fix "unrecognized WC3 chunk" debug output which was broken r18444 due to sign expansion.
Originally committed as revision 18450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:45:57 +00:00
John Fletcher
dae2434928 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.

Originally committed as revision 18449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:14:29 +00:00
Stefano Sabatini
4af615b81e Document the 'size' parameter of set_put_bits_buffer_size().
Originally committed as revision 18448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:04:26 +00:00
Stefano Sabatini
930cab5944 Document ff_put_string().
Originally committed as revision 18447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:01:30 +00:00
Reimar Döffinger
cfb9b3550b 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).

Originally committed as revision 18446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 20:48:56 +00:00
Reimar Döffinger
cdbe3798d2 Explain the purpose of the wc3_pal_lookup and the formula that was used to
calculate it.

Originally committed as revision 18445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 20:08:16 +00:00
Reimar Döffinger
f6a708f092 Use get_le32/get_be32 in wc3movie demuxer instead of reading everything into
a buffer first.

Originally committed as revision 18444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 18:58:55 +00:00
Stefano Sabatini
147a90a3e5 Replace deprecated FF_MM_MMXEXT flag with FF_MM_MMX2.
Originally committed as revision 18443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 18:12:23 +00:00
Stefano Sabatini
54b02ccda2 Rename the 'put_zero' parameter of ff_put_string() to
'terminate_string'.

Originally committed as revision 18442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 15:54:21 +00:00
Stefano Sabatini
980f54513e Add documentation for skip_put_bytes().
Originally committed as revision 18441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:49:46 +00:00
Stefano Sabatini
093364da30 Doxygenate ff_copy_bits().
Originally committed as revision 18440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:47:35 +00:00
Stefano Sabatini
86755e82f7 Factorize declaration for the two variants of put_bits().
Originally committed as revision 18439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:19:09 +00:00
Michael Niedermayer
1b923aa44a Two INIT_VLC_USE_STATIC cases Carl missed.
Originally committed as revision 18438 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:16:30 +00:00