platform/upstream/libav.git
14 years agoMake our getaddrinfo implementation initialize "struct addrinfo" return
Reimar Döffinger [Sun, 28 Feb 2010 22:31:17 +0000 (22:31 +0000)]
Make our getaddrinfo implementation initialize "struct addrinfo" return
value to NULL on errors.

Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoPlug some memory leaks in NUT muxer and demuxer
Vitor Sessak [Sun, 28 Feb 2010 20:49:21 +0000 (20:49 +0000)]
Plug some memory leaks in NUT muxer and demuxer

Originally committed as revision 22120 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoImplement av_tree_destroy_free_elem() to destroy a tree and free all the
Vitor Sessak [Sun, 28 Feb 2010 20:48:42 +0000 (20:48 +0000)]
Implement av_tree_destroy_free_elem() to destroy a tree and free all the
values stored on it.

Originally committed as revision 22119 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake av_build_filter static (and remove av_): It is not used outside resample2.c.
Carl Eugen Hoyos [Sun, 28 Feb 2010 19:58:26 +0000 (19:58 +0000)]
Make av_build_filter static (and remove av_): It is not used outside resample2.c.

Originally committed as revision 22118 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake av_get_bit_rate() static and remove av_, the function is only used
Carl Eugen Hoyos [Sun, 28 Feb 2010 19:05:51 +0000 (19:05 +0000)]
Make av_get_bit_rate() static and remove av_, the function is only used
inside libavcodec/utils.c.

Originally committed as revision 22117 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude libxvid_internal.h: It contains the prototype for av_tempfile().
Carl Eugen Hoyos [Sun, 28 Feb 2010 19:03:38 +0000 (19:03 +0000)]
Include libxvid_internal.h: It contains the prototype for av_tempfile().

Originally committed as revision 22116 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake the following functions static (and remove ff_), they are only used
Carl Eugen Hoyos [Sun, 28 Feb 2010 18:57:18 +0000 (18:57 +0000)]
Make the following functions static (and remove ff_), they are only used
inside libxvidff.c:
ff_xvid_encode_init(), ff_xvid_encode_frame(), ff_xvid_encode_close()

Originally committed as revision 22115 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake function get_channel_name() static: It is only used in audioconvert.c.
Carl Eugen Hoyos [Sun, 28 Feb 2010 18:50:56 +0000 (18:50 +0000)]
Make function get_channel_name() static: It is only used in audioconvert.c.

Originally committed as revision 22114 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoPrint chapter info in dump_format().
Anton Khirnov [Sun, 28 Feb 2010 18:37:09 +0000 (18:37 +0000)]
Print chapter info in dump_format().

Patch by Anton Khirnov, wyskas gmail

Originally committed as revision 22113 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoProcess picture aspect ratio changes in H.264.
Janusz Krzysztofik [Sun, 28 Feb 2010 18:33:33 +0000 (18:33 +0000)]
Process picture aspect ratio changes in H.264.
This fixes playback of such streams with ffplay (but does not affect
current ffmpeg).

Patch by Janusz Krzysztofik, jkrzyszt A tis D icnet D pl

Originally committed as revision 22112 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMany mp3s seem to contain padding after id3 tags that is not considered in the
Michael Niedermayer [Sun, 28 Feb 2010 16:40:17 +0000 (16:40 +0000)]
Many mp3s seem to contain padding after id3 tags that is not considered in the
tag size. Skip this to make the format probing quicker.

Originally committed as revision 22111 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFree packets read in seek_test.
Reimar Döffinger [Sun, 28 Feb 2010 11:18:04 +0000 (11:18 +0000)]
Free packets read in seek_test.

Originally committed as revision 22110 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRename RTP depacketizer files from rtp_* to rtpdec_*
Martin Storsjö [Sun, 28 Feb 2010 11:03:14 +0000 (11:03 +0000)]
Rename RTP depacketizer files from rtp_* to rtpdec_*

Originally committed as revision 22109 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFix some memory leaks in seek_test test program:
Reimar Döffinger [Sun, 28 Feb 2010 10:58:27 +0000 (10:58 +0000)]
Fix some memory leaks in seek_test test program:
- do not allocate context twice
- close the input file before exiting

Originally committed as revision 22108 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude rtpdec.h, it contains prototypes for the following functions:
Carl Eugen Hoyos [Sun, 28 Feb 2010 03:59:15 +0000 (03:59 +0000)]
Include rtpdec.h, it contains prototypes for the following functions:
rtp_set_remote_url(), rtp_get_local_port(), rtp_get_file_handles()

Originally committed as revision 22107 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude internal.h and imgconvert.h, they contain the prototypes for the
Carl Eugen Hoyos [Sun, 28 Feb 2010 03:52:10 +0000 (03:52 +0000)]
Include internal.h and imgconvert.h, they contain the prototypes for the
following functions:
ff_is_hwaccel_pix_fmt(), ff_set_systematic_pal(), ff_fill_linesize(),
ff_fill_pointer(), ff_get_plane_bytewidth()

Originally committed as revision 22106 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude msrledec.h: It contains the prototype for ff_msrle_decode().
Carl Eugen Hoyos [Sun, 28 Feb 2010 03:41:59 +0000 (03:41 +0000)]
Include msrledec.h: It contains the prototype for ff_msrle_decode().

Originally committed as revision 22105 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude atrac.h: It contains the prototypes for atrac_generate_tables()
Carl Eugen Hoyos [Sun, 28 Feb 2010 03:39:11 +0000 (03:39 +0000)]
Include atrac.h: It contains the prototypes for atrac_generate_tables()
and atrac_iqmf().

Originally committed as revision 22104 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude mpegaudiodecheader.h: It contains the prototype for
Carl Eugen Hoyos [Sun, 28 Feb 2010 03:27:10 +0000 (03:27 +0000)]
Include mpegaudiodecheader.h: It contains the prototype for
ff_mpegaudio_decode_header().

Originally committed as revision 22103 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRemove declaration of unused variables.
Carl Eugen Hoyos [Sun, 28 Feb 2010 03:02:25 +0000 (03:02 +0000)]
Remove declaration of unused variables.

Originally committed as revision 22102 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude h263_parser.h: It contains the prototype for
Carl Eugen Hoyos [Sun, 28 Feb 2010 02:44:36 +0000 (02:44 +0000)]
Include h263_parser.h: It contains the prototype for
ff_h263_find_frame_end().

Originally committed as revision 22101 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude mpeg4video.h: Needed for declaration of ff_mpeg4_decode_picture_header.
Carl Eugen Hoyos [Sun, 28 Feb 2010 02:41:20 +0000 (02:41 +0000)]
Include mpeg4video.h: Needed for declaration of ff_mpeg4_decode_picture_header.

Originally committed as revision 22100 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude sha1.h from sha.c: It contains several prototypes.
Carl Eugen Hoyos [Sun, 28 Feb 2010 02:32:16 +0000 (02:32 +0000)]
Include sha1.h from sha.c: It contains several prototypes.

Originally committed as revision 22099 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake sws_dcVec static: It is only used inside libswscale/utils.c.
Carl Eugen Hoyos [Sun, 28 Feb 2010 02:18:16 +0000 (02:18 +0000)]
Make sws_dcVec static: It is only used inside libswscale/utils.c.

Originally committed as revision 30787 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

14 years agoInclude avc.h from avc.c: It contains several prototypes.
Carl Eugen Hoyos [Sun, 28 Feb 2010 02:04:34 +0000 (02:04 +0000)]
Include avc.h from avc.c: It contains several prototypes.

Originally committed as revision 22098 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake mp4_read_descr static: It is only used inside libavformat/mov.c.
Carl Eugen Hoyos [Sun, 28 Feb 2010 01:51:13 +0000 (01:51 +0000)]
Make mp4_read_descr static: It is only used inside libavformat/mov.c.

Originally committed as revision 22097 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoInclude apetag.h which contains the prototype for ff_ape_parse_tag().
Carl Eugen Hoyos [Sun, 28 Feb 2010 01:43:47 +0000 (01:43 +0000)]
Include apetag.h which contains the prototype for ff_ape_parse_tag().

Originally committed as revision 22096 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFix avcodec_align_dimensions to return values suitably aligned for FLV decoding
Reimar Döffinger [Sat, 27 Feb 2010 21:13:22 +0000 (21:13 +0000)]
Fix avcodec_align_dimensions to return values suitably aligned for FLV decoding
with SSE and add a avcodec_align_dimensions2 taht returns the stride alignment
requirements independently from doing the width/height padding.

Originally committed as revision 22095 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoStop make deleting intermediate files (ffmpeg.o and friends)
Måns Rullgård [Sat, 27 Feb 2010 15:25:28 +0000 (15:25 +0000)]
Stop make deleting intermediate files (ffmpeg.o and friends)

Originally committed as revision 22094 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoStrides in Indeo 5 reconstruction filter should be signed,
Jindřich Makovička [Sat, 27 Feb 2010 14:08:06 +0000 (14:08 +0000)]
Strides in Indeo 5 reconstruction filter should be signed,
this way it works on 64-bit archs too.

Patch by Jindřich Makovička ($lastname without last letter and háček, gmail)

Originally committed as revision 22093 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoEncapsulate VLC information needed for decoding blocks and macroblocks in
Kostya Shishkov [Sat, 27 Feb 2010 12:32:31 +0000 (12:32 +0000)]
Encapsulate VLC information needed for decoding blocks and macroblocks in
Indeo 5 into single structure IVIHuffTab and factorize code using it.

Based on patch by Maxim (max_pole at German GMX)

Originally committed as revision 22092 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMake it clear that ff_ivi_init_static_vlc() does not need arguments
Kostya Shishkov [Sat, 27 Feb 2010 12:12:56 +0000 (12:12 +0000)]
Make it clear that ff_ivi_init_static_vlc() does not need arguments

Originally committed as revision 22091 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoadd myself to gpg fingerprint list
Reinhard Tartler [Sat, 27 Feb 2010 10:11:23 +0000 (10:11 +0000)]
add myself to gpg fingerprint list

Originally committed as revision 22089 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agosort() names in PGP/GPG fingerprint list
Diego Biurrun [Sat, 27 Feb 2010 10:10:58 +0000 (10:10 +0000)]
sort() names in PGP/GPG fingerprint list

Originally committed as revision 22088 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMerge h->slice_table[left_xy[0/1] ] checks, 4 cpu cycles speedup
Michael Niedermayer [Sat, 27 Feb 2010 04:09:48 +0000 (04:09 +0000)]
Merge h->slice_table[left_xy[0/1] ] checks, 4 cpu cycles speedup

Originally committed as revision 22086 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoSplit *_type setting up, 4 cpu cycles faster.
Michael Niedermayer [Sat, 27 Feb 2010 03:46:16 +0000 (03:46 +0000)]
Split *_type setting up, 4 cpu cycles faster.

Originally committed as revision 22085 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoOptimize (amvd>2)+(amvd>32), about 1 cpu cycles faster.
Zhou Zongyi [Fri, 26 Feb 2010 22:45:35 +0000 (22:45 +0000)]
Optimize (amvd>2)+(amvd>32), about 1 cpu cycles faster.
patch by Zhou Zongyi @ zhouzy () os punkt pku dot edu speck cn

Originally committed as revision 22084 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFixed a segfault in the DCA decoder with corrupted streams.
Laurent Aimar [Fri, 26 Feb 2010 18:50:01 +0000 (18:50 +0000)]
Fixed a segfault in the DCA decoder with corrupted streams.

 It happens when the number of channels defined by DCAContext:acmod is lower
than DCAContext:prim_channels. In this case, dca_subsubframe() will call
qmf_32_subbands() using s->channel_order_tab[] entries equal to -1.

Originally committed as revision 22083 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoDo not read beyond end of input in EA-TGV. This should avoid FATE test #362
Vitor Sessak [Fri, 26 Feb 2010 18:12:27 +0000 (18:12 +0000)]
Do not read beyond end of input in EA-TGV. This should avoid FATE test #362
result depending on uninitialized data.

FATE result may change for this test.

Originally committed as revision 22082 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRTSP muxer: Use a local copy of the AVPacket for sending to the chained muxer
Martin Storsjö [Fri, 26 Feb 2010 16:21:56 +0000 (16:21 +0000)]
RTSP muxer: Use a local copy of the AVPacket for sending to the chained muxer

This way, we avoid overwriting stream_index in the user's AVPacket
with a nonsense value.

Originally committed as revision 22081 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoOnly load the topleft mv/ref when the topright is unavailable.
Michael Niedermayer [Fri, 26 Feb 2010 15:26:11 +0000 (15:26 +0000)]
Only load the topleft mv/ref when the topright is unavailable.
8 cpu cycles faster.

Originally committed as revision 22079 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRemove some useless operations from the code setting left_cbp.
Michael Niedermayer [Fri, 26 Feb 2010 15:03:00 +0000 (15:03 +0000)]
Remove some useless operations from the code setting left_cbp.
maybe 0.5 cpu cycles faster

Originally committed as revision 22078 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoPrevent overflow of start_time + recording_time.
Francesco Cosoleto [Fri, 26 Feb 2010 14:46:20 +0000 (14:46 +0000)]
Prevent overflow of start_time + recording_time.
Patch by Francesco Cosoleto gmail($name)

Originally committed as revision 22077 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoAdd myself as maintainer of the bink demuxer and bink audio decoder
Peter Ross [Fri, 26 Feb 2010 11:51:17 +0000 (11:51 +0000)]
Add myself as maintainer of the bink demuxer and bink audio decoder

Originally committed as revision 22075 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoSimplify code to set cbp_*
Michael Niedermayer [Fri, 26 Feb 2010 09:13:40 +0000 (09:13 +0000)]
Simplify code to set cbp_*
this seems 1 cpu cycle slower even though we practically just remove code.
Speed loss seems caused by the merge of if(left_type), iam commiting this
anyway as i cant imagine this to be anything but compiler messup.

Originally committed as revision 22073 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFix typos in ref_index documentation.
Benoit Fouet [Fri, 26 Feb 2010 08:55:43 +0000 (08:55 +0000)]
Fix typos in ref_index documentation.

Originally committed as revision 22072 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMove init of right side of ref_cache from fill_caches() to init_the_darn_decoder().
Michael Niedermayer [Fri, 26 Feb 2010 03:27:52 +0000 (03:27 +0000)]
Move init of right side of ref_cache from fill_caches() to init_the_darn_decoder().

Originally committed as revision 22071 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRemove 3 mv_cache zeroing instructions that zeroed the right side.
Michael Niedermayer [Fri, 26 Feb 2010 02:54:03 +0000 (02:54 +0000)]
Remove 3 mv_cache zeroing instructions that zeroed the right side.
This seems unneeded as nothing seems to ever set it to non zero values.

Originally committed as revision 22070 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRemove useless check of the 2 left MBs of a pair being in the same slice.
Michael Niedermayer [Fri, 26 Feb 2010 01:38:12 +0000 (01:38 +0000)]
Remove useless check of the 2 left MBs of a pair being in the same slice.

Originally committed as revision 22069 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoClarify ref_index.
Michael Niedermayer [Fri, 26 Feb 2010 00:51:26 +0000 (00:51 +0000)]
Clarify ref_index.

Originally committed as revision 22068 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRemove unneeded line of code from the neighbor setting code in h264.
Michael Niedermayer [Fri, 26 Feb 2010 00:10:35 +0000 (00:10 +0000)]
Remove unneeded line of code from the neighbor setting code in h264.

Originally committed as revision 22067 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoSimplify code in mv_pred.
Michael Niedermayer [Fri, 26 Feb 2010 00:08:27 +0000 (00:08 +0000)]
Simplify code in mv_pred.
Not benchmarked as this is petty much just code removial.

Originally committed as revision 22066 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoGet rid of mb2b8_xy and b8_stride, change arrays organized based on b8_stride to
Michael Niedermayer [Thu, 25 Feb 2010 23:44:42 +0000 (23:44 +0000)]
Get rid of mb2b8_xy and b8_stride, change arrays organized based on b8_stride to
ones based on mb_stride in h264.
about 20 cpu cycles faster overall per MB

Originally committed as revision 22065 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoDisable suffix rules
Måns Rullgård [Thu, 25 Feb 2010 23:27:54 +0000 (23:27 +0000)]
Disable suffix rules

Most of the make builtin rules, which we do not need, are suffix rules,
and we use only new-style pattern rules.  Disabling suffix rules saves
some time when building on slow systems.

Originally committed as revision 22064 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRemove pointless empty line.
Stefano Sabatini [Thu, 25 Feb 2010 21:21:29 +0000 (21:21 +0000)]
Remove pointless empty line.

Originally committed as revision 30730 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

14 years agoApply consistency nit.
Stefano Sabatini [Thu, 25 Feb 2010 21:12:38 +0000 (21:12 +0000)]
Apply consistency nit.

Originally committed as revision 30729 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

14 years agoAdd the graph2dot tools and document it.
Stefano Sabatini [Thu, 25 Feb 2010 19:55:01 +0000 (19:55 +0000)]
Add the graph2dot tools and document it.

Also link avfiltergraph.o and graphparser.o against libavfilter, as it
uses them.

Originally committed as revision 22063 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoReplace not anymore valid syntax "-title X" with "-metadata title=X".
Stefano Sabatini [Thu, 25 Feb 2010 19:38:54 +0000 (19:38 +0000)]
Replace not anymore valid syntax "-title X" with "-metadata title=X".

Originally committed as revision 22062 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agosvq3 now in working condition, at least vissually, ill let fate tell us
Michael Niedermayer [Thu, 25 Feb 2010 18:41:48 +0000 (18:41 +0000)]
svq3 now in working condition, at least vissually, ill let fate tell us
if the checksums match

Originally committed as revision 22061 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agofix compilation, sorry ive not checked cvslog for a while :(((
Michael Niedermayer [Thu, 25 Feb 2010 18:39:01 +0000 (18:39 +0000)]
fix compilation, sorry ive not checked cvslog for a while :(((
svq3 decoder does not work yet though but i didnt want to keep compilation
broken longer

Originally committed as revision 22060 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoasfenc: write tags in proper UTF-16.
Anton Khirnov [Thu, 25 Feb 2010 16:59:55 +0000 (16:59 +0000)]
asfenc: write tags in proper UTF-16.
Patch by Anton Khirnov wyskas gmail com

Originally committed as revision 22059 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoasfenc: simplify writing of comment header.
Anton Khirnov [Thu, 25 Feb 2010 16:50:26 +0000 (16:50 +0000)]
asfenc: simplify writing of comment header.
Patch by Anton Khirnov wyskas gmail com

Originally committed as revision 22058 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoasfdec: don't strip the "WM/" prefix, this should be done during conversion.
Anton Khirnov [Thu, 25 Feb 2010 16:38:23 +0000 (16:38 +0000)]
asfdec: don't strip the "WM/" prefix, this should be done during conversion.
Patch by Anton Khirnov wyskas gmail com

Originally committed as revision 22057 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoDont allocate direct_table 8 times too large.
Michael Niedermayer [Thu, 25 Feb 2010 15:29:12 +0000 (15:29 +0000)]
Dont allocate direct_table 8 times too  large.

Originally committed as revision 22056 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoStore data in direct_table interleaved.
Michael Niedermayer [Thu, 25 Feb 2010 15:27:55 +0000 (15:27 +0000)]
Store data in direct_table interleaved.
seems 20cpu cycles faster

Originally committed as revision 22055 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoSimplify intra4x4_pred_mode_cache init.
Michael Niedermayer [Thu, 25 Feb 2010 14:54:31 +0000 (14:54 +0000)]
Simplify intra4x4_pred_mode_cache init.

Originally committed as revision 22054 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoReorder intra4x4_pred_mode so that we can read/write 4 values at once.
Michael Niedermayer [Thu, 25 Feb 2010 14:26:12 +0000 (14:26 +0000)]
Reorder intra4x4_pred_mode so that we can read/write 4 values at once.
3-7 cpu cycles faster

Originally committed as revision 22053 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoStore intra4x4_pred_mode per row only.
Michael Niedermayer [Thu, 25 Feb 2010 14:02:39 +0000 (14:02 +0000)]
Store intra4x4_pred_mode per row only.
about 5 cpu cycles slower in the local code but should be overall faster
due to reduced cache use. (my sample though has too few intra4x4 blocks
for this to be meassureable easily either way)

Originally committed as revision 22052 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agounroll tiny and trivial loop. Same speed but clearer.
Michael Niedermayer [Thu, 25 Feb 2010 12:51:32 +0000 (12:51 +0000)]
unroll tiny and trivial loop. Same speed but clearer.

Originally committed as revision 22051 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoasf: indent.
Benoit Fouet [Thu, 25 Feb 2010 09:10:37 +0000 (09:10 +0000)]
asf: indent.
Patch from Anton Khirnov wyskas gmail com

Originally committed as revision 22050 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoasf: add more entries to metadata conv table.
Benoit Fouet [Thu, 25 Feb 2010 09:09:39 +0000 (09:09 +0000)]
asf: add more entries to metadata conv table.
Patch from Anton Khirnov wyskas gmail com

Originally committed as revision 22049 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoCut the size of mvd_table by yet another factor of 2.
Michael Niedermayer [Thu, 25 Feb 2010 04:11:33 +0000 (04:11 +0000)]
Cut the size of mvd_table by yet another factor of 2.
The code read/write code itself was 1 cycle faster, overall its
likely more due to cache effects

Originally committed as revision 22048 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoKeep mvd_table values of only 2 mb rows.
Michael Niedermayer [Thu, 25 Feb 2010 02:42:25 +0000 (02:42 +0000)]
Keep mvd_table values of only 2 mb rows.

Originally committed as revision 22047 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years ago10l: add prefix "TAG:" to the metadata tags key showed for each stream.
Stefano Sabatini [Thu, 25 Feb 2010 00:16:43 +0000 (00:16 +0000)]
10l: add prefix "TAG:" to the metadata tags key showed for each stream.

This is consistent with the metadata displaying in show_format() and
with the documentation.

Originally committed as revision 22046 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoCosmetics: replace "filename" to "arg" for the name of the argument of
Stefano Sabatini [Thu, 25 Feb 2010 00:05:01 +0000 (00:05 +0000)]
Cosmetics: replace "filename" to "arg" for the name of the argument of
opt_input_file(). More consistent and more clear, as "filename" can be
easily confused with the global "input_filename".

Originally committed as revision 22045 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoaac: Keep decode_band_types() from eating all padding at the end of a buffer.
Alex Converse [Wed, 24 Feb 2010 23:56:52 +0000 (23:56 +0000)]
aac: Keep decode_band_types() from eating all padding at the end of a buffer.

Due to a shortcoming in the AAC specification, if an all zero buffer is
fed to section data decoding it will never terminate. That means without
a buffer exhaustion check decode_band_types() will consume all input
buffer padding. Worse if a get_bits() implementation that returns zeros
when padding is exhausted is used, the function will never terminate.

The fixes that by added a buffer exhaustion check in the sectioning
decoding loop.

Originally committed as revision 22044 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoExtend doxy for the src parameter of av_fifo_generic_write().
Stefano Sabatini [Wed, 24 Feb 2010 23:52:52 +0000 (23:52 +0000)]
Extend doxy for the src parameter of av_fifo_generic_write().

@patchby Tomas Härdin |tomas dot hardin at codemill dot se|

Originally committed as revision 22043 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years ago3rd and hopefully last 100l fix.
Michael Niedermayer [Wed, 24 Feb 2010 22:13:20 +0000 (22:13 +0000)]
3rd and hopefully last 100l fix.

Originally committed as revision 22041 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFix doxy and assert().
Michael Niedermayer [Wed, 24 Feb 2010 22:05:51 +0000 (22:05 +0000)]
Fix doxy and assert().

Originally committed as revision 22040 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoTry to fix 100l compilation failure on some systems.
Michael Niedermayer [Wed, 24 Feb 2010 21:55:55 +0000 (21:55 +0000)]
Try to fix 100l compilation failure on some systems.

Originally committed as revision 22039 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoChange mvd_cache & mvd_table to 8bit, this is overall a bit faster
Michael Niedermayer [Wed, 24 Feb 2010 20:43:06 +0000 (20:43 +0000)]
Change mvd_cache & mvd_table to 8bit, this is overall a bit faster
for high resolution videos.
about 20cycles faster per MB for cathederal.

Originally committed as revision 22038 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoAV_COPY16() & AV_ZERO16()
Michael Niedermayer [Wed, 24 Feb 2010 20:38:31 +0000 (20:38 +0000)]
AV_COPY16() & AV_ZERO16()

Originally committed as revision 22037 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoExtend fill_rectangle() support for 16bit
Michael Niedermayer [Wed, 24 Feb 2010 20:37:58 +0000 (20:37 +0000)]
Extend fill_rectangle() support for 16bit

Originally committed as revision 22036 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoCalculate mvd without abs()
Michael Niedermayer [Wed, 24 Feb 2010 18:50:02 +0000 (18:50 +0000)]
Calculate mvd without abs()
same speed (ask gcc why, i dont know)

Originally committed as revision 22035 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoRead ASF metadata as proper UTF-16 and spit it out as proper UTF-8 in our
Anton Khirnov [Wed, 24 Feb 2010 18:19:54 +0000 (18:19 +0000)]
Read ASF metadata as proper UTF-16 and spit it out as proper UTF-8 in our
metadata system.

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22034 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoDon't add WM prefixes to all written ASF tags.
Anton Khirnov [Wed, 24 Feb 2010 18:17:32 +0000 (18:17 +0000)]
Don't add WM prefixes to all written ASF tags.

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22033 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoswitch back to (amvd>2)+(amvd>32), its 5 cpu cycles faster now.
Michael Niedermayer [Wed, 24 Feb 2010 18:16:48 +0000 (18:16 +0000)]
switch back to (amvd>2)+(amvd>32), its 5 cpu cycles faster now.

Originally committed as revision 22032 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoEliminate put_str16().
Anton Khirnov [Wed, 24 Feb 2010 18:09:49 +0000 (18:09 +0000)]
Eliminate put_str16().

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22031 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoAdd PUT_UTF16() macro.
Anton Khirnov [Wed, 24 Feb 2010 18:08:30 +0000 (18:08 +0000)]
Add PUT_UTF16() macro.

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22030 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoFactorize common code from the top of decode_cabac_mb_mvd()
Michael Niedermayer [Wed, 24 Feb 2010 18:06:02 +0000 (18:06 +0000)]
Factorize common code from the top of decode_cabac_mb_mvd()
10-15 cpu cycles faster.

Originally committed as revision 22029 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoMention that metadata tags are (unvalidated) UTF-8.
Anton Khirnov [Wed, 24 Feb 2010 18:01:44 +0000 (18:01 +0000)]
Mention that metadata tags are (unvalidated) UTF-8.

Patch by Anton Khirnov <wyskas gmail com>.

Originally committed as revision 22028 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoReplace mvd>2 + mvd>32 by MIN((mvd+28)*17>>9, 2)
Michael Niedermayer [Wed, 24 Feb 2010 16:16:08 +0000 (16:16 +0000)]
Replace mvd>2 + mvd>32 by MIN((mvd+28)*17>>9, 2)
same speed as far as i can meassure but it might have fewer branches on some
archs.
Idea from x264 / jason

Originally committed as revision 22027 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoClear freed pointer in ffplay.c.
Ramiro Polla [Wed, 24 Feb 2010 14:45:18 +0000 (14:45 +0000)]
Clear freed pointer in ffplay.c.
Fixes a crash when audio stream is cycled twice.

Originally committed as revision 22026 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoReplace ad-hoc fill rectangle by fill_rectangle().
Michael Niedermayer [Wed, 24 Feb 2010 13:12:09 +0000 (13:12 +0000)]
Replace ad-hoc fill rectangle by fill_rectangle().

Originally committed as revision 22025 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoff_msmpeg4_decode_init() calls ff_h263_decode_init() which calls
Kostya Shishkov [Wed, 24 Feb 2010 13:11:38 +0000 (13:11 +0000)]
ff_msmpeg4_decode_init() calls ff_h263_decode_init() which calls
MPV_common_init(), so calling both is redundant and leads to memory
leaks in WMV3/VC-1 decoder. Thus use only the first function in
WMV3/VC-1 decoder initialization.

Originally committed as revision 22024 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoit is not necessary to display the decoder name, as av_log() automatically prints...
Peter Ross [Wed, 24 Feb 2010 11:51:42 +0000 (11:51 +0000)]
it is not necessary to display the decoder name, as av_log() automatically prints the context

Originally committed as revision 22023 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agolow-complexity Bink file seeking
Peter Ross [Wed, 24 Feb 2010 11:43:33 +0000 (11:43 +0000)]
low-complexity Bink file seeking

Originally committed as revision 22022 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoset AVINDEX_KEYFRAME correctly for bink
Peter Ross [Wed, 24 Feb 2010 11:30:38 +0000 (11:30 +0000)]
set AVINDEX_KEYFRAME correctly for bink

Originally committed as revision 22021 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoCorrectly increment continuity_counter in PCR packets.
Yann Coupin [Wed, 24 Feb 2010 10:56:13 +0000 (10:56 +0000)]
Correctly increment continuity_counter in PCR packets.

Patch by Yann Coupin, yann.coupin+ffmpeg gmail

Originally committed as revision 22020 to svn://svn.ffmpeg.org/ffmpeg/trunk

14 years agoasfdec: skip byte array tags.
Benoit Fouet [Wed, 24 Feb 2010 07:34:12 +0000 (07:34 +0000)]
asfdec: skip byte array tags.
Patch from Anton Khirnov wyskas gmail

Originally committed as revision 22019 to svn://svn.ffmpeg.org/ffmpeg/trunk