ffmpeg:ffmpeg-mt.git
6 years agoMerge remote branch 'mainline/master'
Alexander Strange [Mon, 17 Jan 2011 08:39:49 +0000 (03:39 -0500)]
Merge remote branch 'mainline/master'

6 years agoVP3: remove an unnecessary static variable
astrange [Mon, 17 Jan 2011 08:36:13 +0000 (08:36 +0000)]
VP3: remove an unnecessary static variable

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

6 years agoUpdate APIchanges to match mainline_patches branch
Alexander Strange [Mon, 17 Jan 2011 03:15:28 +0000 (22:15 -0500)]
Update APIchanges to match mainline_patches branch

6 years agolibavfilter input_get_buffer is thread-safe
Alexander Strange [Mon, 17 Jan 2011 03:01:18 +0000 (22:01 -0500)]
libavfilter input_get_buffer is thread-safe

Slightly faster ffplay playback

6 years agoAllocate last picture for 4xm pfrm if its not allocated.
michael [Sun, 16 Jan 2011 22:08:34 +0000 (22:08 +0000)]
Allocate last picture for 4xm pfrm if its not allocated.
Fixes segfault and issue2527

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

6 years agoFix two typos in git howto.
alexc [Sun, 16 Jan 2011 20:16:01 +0000 (20:16 +0000)]
Fix two typos in git howto.

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

6 years agoMake config_props() return AVERROR(EINVAL) rather than 1 in case of
stefano [Sun, 16 Jan 2011 20:11:46 +0000 (20:11 +0000)]
Make config_props() return AVERROR(EINVAL) rather than 1 in case of
failed SWScaleContext initialization.

Fix issue2546.

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

6 years agouse git describe for naming version in pure git clones
janne [Sun, 16 Jan 2011 18:34:09 +0000 (18:34 +0000)]
use git describe for naming version in pure git clones

Patch by: Ramiro Polla <ramiro <DOT> polla  gmail <DOT> com>

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

6 years agofix typo in git howto section heading
janne [Sun, 16 Jan 2011 18:29:08 +0000 (18:29 +0000)]
fix typo in git howto section heading

spotted by ubitux on irc

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

6 years agoCheck 4xm headers for validity. This should avoid 1/0.
michael [Sun, 16 Jan 2011 18:22:29 +0000 (18:22 +0000)]
Check 4xm headers for validity. This should avoid 1/0.

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

6 years agoAdd section how to find a svn changeset with git commands
janne [Sun, 16 Jan 2011 18:20:06 +0000 (18:20 +0000)]
Add section how to find a svn changeset with git commands

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

6 years agoFix weird indent in get_video_frame().
stefano [Sun, 16 Jan 2011 17:26:00 +0000 (17:26 +0000)]
Fix weird indent in get_video_frame().

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

6 years agoAdd git-howto.
elenril [Sun, 16 Jan 2011 17:16:48 +0000 (17:16 +0000)]
Add git-howto.

mostly written by Luca.

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

6 years agosupport decoding of files that contain the number
faust3 [Sun, 16 Jan 2011 16:39:53 +0000 (16:39 +0000)]
support decoding of files that contain the number
of vector coded coefficients in their bitstream
fixes issue 2536

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

6 years agoIn ffmpeg.texi, prefer @itemize lists over text formatted "*" lists.
stefano [Sun, 16 Jan 2011 13:04:56 +0000 (13:04 +0000)]
In ffmpeg.texi, prefer @itemize lists over text formatted "*" lists.

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

6 years agoValues >4 for lowres corrupt output.
cehoyos [Sun, 16 Jan 2011 12:45:59 +0000 (12:45 +0000)]
Values >4 for lowres corrupt output.

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

6 years agoReformat documentation for -vsync @var{parameter}.
stefano [Sun, 16 Jan 2011 12:45:42 +0000 (12:45 +0000)]
Reformat documentation for -vsync @var{parameter}.

Make use of "@table @option" for showing the valid values for the
option.

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

6 years agoSince lowres == crop for bmp, remove it to avoid confusion.
cehoyos [Sun, 16 Jan 2011 12:42:43 +0000 (12:42 +0000)]
Since lowres == crop for bmp, remove it to avoid confusion.

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

6 years agoUpdate todo.txt
Alexander Strange [Sun, 16 Jan 2011 07:31:44 +0000 (02:31 -0500)]
Update todo.txt

6 years agoUpdate mplayer.diff to work around incompatibility with draw_horiz_band()
Alexander Strange [Sun, 16 Jan 2011 07:29:08 +0000 (02:29 -0500)]
Update mplayer.diff to work around incompatibility with draw_horiz_band()

6 years agoh264: Early-exit condition for await_references()
Alexander Strange [Sun, 16 Jan 2011 07:18:12 +0000 (02:18 -0500)]
h264: Early-exit condition for await_references()

Saves even more zero checking in refs[][], although it still leaves many
useless checks when nrefs[i]>1, because the array indexes are scattered.

About ~.8% faster decoding.

6 years agoUpdate todo.txt
Alexander Strange [Sun, 16 Jan 2011 03:52:30 +0000 (22:52 -0500)]
Update todo.txt

6 years agoPass pkt_dts properly through multithreading
Alexander Strange [Sun, 16 Jan 2011 03:51:43 +0000 (22:51 -0500)]
Pass pkt_dts properly through multithreading

A/V sync should work in all cases now once guess_correct_pts()/clients
adopt AVFrame.pkt_dts.

6 years agoFix fate breakage in r26382.
rbultje [Sun, 16 Jan 2011 03:20:03 +0000 (03:20 +0000)]
Fix fate breakage in r26382.

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

6 years agoRemove useless free, fix warning:
bcoudurier [Sun, 16 Jan 2011 02:47:25 +0000 (02:47 +0000)]
Remove useless free, fix warning:
libavfilter/defaults.c: In function 'avfilter_default_get_audio_buffer':
libavfilter/defaults.c:129: warning: 'buf' is used uninitialized in this function

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

6 years agoRe-enable multithreaded mpeg4.
Alexander Strange [Sun, 16 Jan 2011 00:27:39 +0000 (19:27 -0500)]
Re-enable multithreaded mpeg4.

Seems to work in mplayer, and is needed so I can investigate fixing the buffer
age+skip optimization.

6 years agopthread: Call external get_buffer() on the client's thread by default
Alexander Strange [Sun, 16 Jan 2011 00:26:14 +0000 (19:26 -0500)]
pthread: Call external get_buffer() on the client's thread by default

This fixes several mplayer VOs that crashed when they were called from decoding
threads.

Not a complete fix as mplayer still doesn't work right with draw_horiz_band()
being called from decoding threads, but that doesn't crash at least.

6 years agoMake ARM asm #error out, since the offset values are out of date here
Alexander Strange [Sat, 15 Jan 2011 22:02:46 +0000 (17:02 -0500)]
Make ARM asm #error out, since the offset values are out of date here

6 years agoMerge mainline.
Alexander Strange [Sat, 15 Jan 2011 22:01:41 +0000 (17:01 -0500)]
Merge mainline.

Conflicts:
doc/APIchanges
libavcodec/avcodec.h
libavcodec/h264.c
libavcodec/utils.c

6 years agoFix overflow in pred16x16_plane x86 simd code. Fixes issue 2547.
rbultje [Sat, 15 Jan 2011 22:00:44 +0000 (22:00 +0000)]
Fix overflow in pred16x16_plane x86 simd code. Fixes issue 2547.

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

6 years agoInclude libavcore/audioconvert.h, required for
stefano [Sat, 15 Jan 2011 20:43:01 +0000 (20:43 +0000)]
Include libavcore/audioconvert.h, required for
av_get_channel_layout_string() in ff_dprintf_link.

Fix compilation.

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

6 years agoReindent.
stefano [Sat, 15 Jan 2011 20:02:03 +0000 (20:02 +0000)]
Reindent.

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

6 years agoMake ff_dprintf_link() print meaningful information for audio links.
stefano [Sat, 15 Jan 2011 19:58:29 +0000 (19:58 +0000)]
Make ff_dprintf_link() print meaningful information for audio links.

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

6 years agoRemove evil timers that snuck their way into r26375.
darkshikari [Sat, 15 Jan 2011 18:14:36 +0000 (18:14 +0000)]
Remove evil timers that snuck their way into r26375.

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

6 years agoFix r26375 on non-x86.
darkshikari [Sat, 15 Jan 2011 18:13:40 +0000 (18:13 +0000)]
Fix r26375 on non-x86.

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

6 years agoH.264: Partially inline CABAC residual decoding
darkshikari [Sat, 15 Jan 2011 17:52:48 +0000 (17:52 +0000)]
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.

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

6 years agoRename AVFilterBufferRefAudioProps.samples_nb to nb_samples.
stefano [Sat, 15 Jan 2011 17:31:34 +0000 (17:31 +0000)]
Rename AVFilterBufferRefAudioProps.samples_nb to nb_samples.

More consistent with the rest of FFmpeg and sounds more natural to
English speaking people.

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

6 years agoMake avfilter_unref_buffer() accept a NULL parameter.
stefano [Sat, 15 Jan 2011 17:21:15 +0000 (17:21 +0000)]
Make avfilter_unref_buffer() accept a NULL parameter.

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

6 years agoReindent after the last commit.
stefano [Sat, 15 Jan 2011 17:21:12 +0000 (17:21 +0000)]
Reindent after the last commit.

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

6 years agoIn ffplay, do not open display if -nodisp is set.
stefano [Sat, 15 Jan 2011 17:21:09 +0000 (17:21 +0000)]
In ffplay, do not open display if -nodisp is set.

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

6 years agoParse fact chunks from wav files to find duration.
michael [Sat, 15 Jan 2011 17:13:32 +0000 (17:13 +0000)]
Parse fact chunks from wav files to find duration.

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

6 years agoFactor tag reading code out of wav read_header()
michael [Sat, 15 Jan 2011 17:13:30 +0000 (17:13 +0000)]
Factor tag reading code out of wav read_header()

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

6 years agoSecond hunk from secrity fix from google.
michael [Sat, 15 Jan 2011 17:10:49 +0000 (17:10 +0000)]
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

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

6 years agodo not read over the end of the packet
faust3 [Sat, 15 Jan 2011 16:39:52 +0000 (16:39 +0000)]
do not read over the end of the packet
fixes issue 2543

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

6 years agoSet duration for wav files from sample size and data size or the wf64 sample value.
michael [Sat, 15 Jan 2011 16:26:42 +0000 (16:26 +0000)]
Set duration for wav files from sample size and data size or the wf64 sample value.
This should improve duration accuracy slightly and avoids a warning about its
inaccuracy when accurate values are available. Idea by Frank Barchard

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

6 years agoCheck rangebits to avoid a possible crash.
cehoyos [Sat, 15 Jan 2011 16:19:06 +0000 (16:19 +0000)]
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

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

6 years agoChange some band size calculations in Bink decoder to use width in blocks
kostya [Sat, 15 Jan 2011 13:29:14 +0000 (13:29 +0000)]
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.

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

6 years agoLagarith: fix decoding of one-coloured frames by reading the per-plane
reimar [Sat, 15 Jan 2011 12:44:48 +0000 (12:44 +0000)]
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.

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

6 years agoAdd docs and Changelog entry for the -copytb option added in r26340.
stefano [Sat, 15 Jan 2011 11:13:07 +0000 (11:13 +0000)]
Add docs and Changelog entry for the -copytb option added in r26340.

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

6 years agoAdd APIchanges entry for the av_metadata_copy() addition.
stefano [Sat, 15 Jan 2011 11:13:04 +0000 (11:13 +0000)]
Add APIchanges entry for the av_metadata_copy() addition.

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

6 years agoCheck symbol validity to avoid a crash, fixes issue 2523.
cehoyos [Sat, 15 Jan 2011 10:18:38 +0000 (10:18 +0000)]
Check symbol validity to avoid a crash, fixes issue 2523.

Patch by Daniel Kang, daniel.d.kang at gmail

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

6 years agocosmetics: spacing, line wrap, and remove unneeded braces
jbr [Sat, 15 Jan 2011 01:59:31 +0000 (01:59 +0000)]
cosmetics: spacing, line wrap, and remove unneeded braces

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

6 years agoProcess all EXP_REUSE blocks at once in exponent_min().
jbr [Sat, 15 Jan 2011 01:59:21 +0000 (01:59 +0000)]
Process all EXP_REUSE blocks at once in exponent_min().
43% faster in function encode_exponents().

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

6 years agoTake advantage of per-channel exponent and exponent strategy layout to
jbr [Sat, 15 Jan 2011 01:59:15 +0000 (01:59 +0000)]
Take advantage of per-channel exponent and exponent strategy layout to
simplify and speed up encode_exponents().
8% faster in function.

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

6 years agoSimplify compute_exp_strategy() by passing a pointer to all exponents and
jbr [Sat, 15 Jan 2011 01:59:10 +0000 (01:59 +0000)]
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.

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

6 years agoUse a local variable in the inner loop of group_exponents() to simplify the
jbr [Sat, 15 Jan 2011 01:59:04 +0000 (01:59 +0000)]
Use a local variable in the inner loop of group_exponents() to simplify the
code.

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

6 years agocosmetics: remove unneeded braces
jbr [Sat, 15 Jan 2011 01:58:59 +0000 (01:58 +0000)]
cosmetics: remove unneeded braces

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

6 years agocosmetics: rename block_num to blk for variable name consistency
jbr [Sat, 15 Jan 2011 01:58:55 +0000 (01:58 +0000)]
cosmetics: rename block_num to blk for variable name consistency

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

6 years agoMove exp_strategy from AC3Block to AC3EncodeContext in order to arrange by
jbr [Sat, 15 Jan 2011 01:58:50 +0000 (01:58 +0000)]
Move exp_strategy from AC3Block to AC3EncodeContext in order to arrange by
channel first, then by block.

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

6 years agoRearrange exponent buffer to group all blocks for a single channel together.
jbr [Sat, 15 Jan 2011 01:58:45 +0000 (01:58 +0000)]
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.

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

6 years agoCosmetics: fix weird indent.
stefano [Sat, 15 Jan 2011 01:28:00 +0000 (01:28 +0000)]
Cosmetics: fix weird indent.

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

6 years agoH.264/SVQ3: make chroma DC work the same way as luma DC
darkshikari [Sat, 15 Jan 2011 01:10:46 +0000 (01:10 +0000)]
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.

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

6 years agoM libavcodec/svq3.c
darkshikari [Sat, 15 Jan 2011 00:41:18 +0000 (00:41 +0000)]
M    libavcodec/svq3.c
M    libavcodec/h264.c
M    libavcodec/dsputil.h

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

6 years agoIn yadif filter, default to top field first if interlacing is unknown
bcoudurier [Sat, 15 Jan 2011 00:32:36 +0000 (00:32 +0000)]
In yadif filter, default to top field first if interlacing is unknown

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

6 years agoalso support decoding of AVPackets with multiple wma packets
faust3 [Fri, 14 Jan 2011 23:58:55 +0000 (23:58 +0000)]
also support decoding of AVPackets with multiple wma packets
fixes issue 2539

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

6 years agoH.264: Remove useless arg to chroma_dc_dequant_idct_c
darkshikari [Fri, 14 Jan 2011 23:46:55 +0000 (23:46 +0000)]
H.264: Remove useless arg to chroma_dc_dequant_idct_c

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

6 years agoFix ff_pw_3 alignment.
rbultje [Fri, 14 Jan 2011 23:26:34 +0000 (23:26 +0000)]
Fix ff_pw_3 alignment.

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

6 years agoIn mxf muxer, check the return value of gmtime, fix #2494
bcoudurier [Fri, 14 Jan 2011 22:36:23 +0000 (22:36 +0000)]
In mxf muxer, check the return value of gmtime, fix #2494

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

6 years agoUpdate smc fate ref due to r26310
bcoudurier [Fri, 14 Jan 2011 22:32:26 +0000 (22:32 +0000)]
Update smc fate ref due to r26310

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

6 years agoFix SVQ3
darkshikari [Fri, 14 Jan 2011 22:23:42 +0000 (22:23 +0000)]
Fix SVQ3
Regression in r26336-7.

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

6 years agoNew "copytb" ffmpeg cli option to copy input stream time base when stream copying.
bcoudurier [Fri, 14 Jan 2011 22:01:49 +0000 (22:01 +0000)]
New "copytb" ffmpeg cli option to copy input stream time base when stream copying.
This should avoid non monotone timestamps for video streams with vfr.

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

6 years agoRemove outdated comment in h264dsp.h
darkshikari [Fri, 14 Jan 2011 21:48:33 +0000 (21:48 +0000)]
Remove outdated comment in h264dsp.h
Since we no longer have non-transposed scantables, the problem it warns about
no longer exists.

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

6 years agoReindent after r26337.
darkshikari [Fri, 14 Jan 2011 21:36:45 +0000 (21:36 +0000)]
Reindent after r26337.

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

6 years agoH.264: switch to x264-style tracking of luma/chroma DC NNZ
darkshikari [Fri, 14 Jan 2011 21:36:16 +0000 (21:36 +0000)]
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.

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

6 years agoH.264: split luma dc idct out and implement MMX/SSE2 versions
darkshikari [Fri, 14 Jan 2011 21:34:25 +0000 (21:34 +0000)]
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.

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

6 years agoMake opt_audio_sample_fmt() abort in case of invalid sample format
stefano [Fri, 14 Jan 2011 20:58:51 +0000 (20:58 +0000)]
Make opt_audio_sample_fmt() abort in case of invalid sample format
name.

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

6 years agoAdd the word "Parsed" in the parsed filter names.
stefano [Fri, 14 Jan 2011 20:58:47 +0000 (20:58 +0000)]
Add the word "Parsed" in the parsed filter names.

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

6 years agoAdd avcore.h header in samplefmt.h.
stefano [Fri, 14 Jan 2011 20:58:43 +0000 (20:58 +0000)]
Add avcore.h header in samplefmt.h.

Avoid the need to manually include the avcore.h header, less
error-prone.

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

6 years agoCopy metadata from ASF files contained in RTSP streams from ASF to RTSP layer,
rbultje [Fri, 14 Jan 2011 19:44:44 +0000 (19:44 +0000)]
Copy metadata from ASF files contained in RTSP streams from ASF to RTSP layer,
so that applications can read it also.

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

6 years agoReindent after 26330.
rbultje [Fri, 14 Jan 2011 19:31:20 +0000 (19:31 +0000)]
Reindent after 26330.

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

6 years agoIntroduce av_metadata_copy() to copy metadata from one struct to another.
rbultje [Fri, 14 Jan 2011 19:30:55 +0000 (19:30 +0000)]
Introduce av_metadata_copy() to copy metadata from one struct to another.

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

6 years agoH.264: eliminate non-transposed scantable support.
darkshikari [Fri, 14 Jan 2011 19:04:59 +0000 (19:04 +0000)]
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.

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

6 years agoadd support for blocksize 64
faust3 [Fri, 14 Jan 2011 16:36:57 +0000 (16:36 +0000)]
add support for blocksize 64
fixes issue 2537 and 2538

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

6 years agowtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable
pross [Fri, 14 Jan 2011 08:28:27 +0000 (08:28 +0000)]
wtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable

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

6 years agoRevert aviobuf: Retry if the read/write function returns AVERROR(EAGAIN)
mstorsjo [Thu, 13 Jan 2011 06:22:43 +0000 (06:22 +0000)]
Revert aviobuf: Retry if the read/write function returns AVERROR(EAGAIN)

This reverts SVN commit 26318, which broke MS-RTSP playback.

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

6 years agoCheck linked pads media type mismatch in avfilter_link().
stefano [Thu, 13 Jan 2011 01:00:36 +0000 (01:00 +0000)]
Check linked pads media type mismatch in avfilter_link().

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

6 years agoMake av_get_channel_layout_string() guess the number of channels if it
stefano [Thu, 13 Jan 2011 01:00:31 +0000 (01:00 +0000)]
Make av_get_channel_layout_string() guess the number of channels if it
was not provided.

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

6 years agoMake avfilter_graph_free() do nothing if graph is NULL.
stefano [Wed, 12 Jan 2011 21:23:16 +0000 (21:23 +0000)]
Make avfilter_graph_free() do nothing if graph is NULL.

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

6 years agoPrint link audio format name in tools/graph2dot.
stefano [Wed, 12 Jan 2011 18:25:03 +0000 (18:25 +0000)]
Print link audio format name in tools/graph2dot.

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

6 years agoUse AVERROR_INVALIDDATA rather than -1 for nutdec error codes.
stefano [Wed, 12 Jan 2011 16:40:28 +0000 (16:40 +0000)]
Use AVERROR_INVALIDDATA rather than -1 for nutdec error codes.

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

6 years agoIn the pad filter, log information about the input size.
stefano [Wed, 12 Jan 2011 16:40:23 +0000 (16:40 +0000)]
In the pad filter, log information about the input size.

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

6 years agoRemove myself as AAC maintainer. I just don't have it in me anymore.
alexc [Wed, 12 Jan 2011 07:22:12 +0000 (07:22 +0000)]
Remove myself as AAC maintainer. I just don't have it in me anymore.

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

6 years agoaviobuf: Retry if the read/write function returns AVERROR(EAGAIN)
mstorsjo [Wed, 12 Jan 2011 07:06:27 +0000 (07:06 +0000)]
aviobuf: Retry if the read/write function returns AVERROR(EAGAIN)

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

6 years agoDo not allocate unused swscale context when libavfilter is compiled in
bcoudurier [Wed, 12 Jan 2011 00:52:47 +0000 (00:52 +0000)]
Do not allocate unused swscale context when libavfilter is compiled in

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

6 years agodon't complain about codec type/id mismatche for attachment streams
aurel [Wed, 12 Jan 2011 00:33:22 +0000 (00:33 +0000)]
don't complain about codec type/id mismatche for attachment streams

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

6 years agoFix design of the pad filter.
michael [Tue, 11 Jan 2011 23:53:24 +0000 (23:53 +0000)]
Fix design of the pad filter.
Previously the pad filter just drawed borders in the surrounding of the input
without checking if this area was allocated or writeable. Now we check and
allocate a new buffer if the input is unsuitable.

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

6 years agoAdd w,h,format back into AVFilterBuffer, these are required for direct rendering.
michael [Tue, 11 Jan 2011 23:53:17 +0000 (23:53 +0000)]
Add w,h,format back into AVFilterBuffer, these are required for direct rendering.
These fields are needed to be able to know which area of memory is allocated and
which is off limits.
This reverts 24291 and parts of r24424.

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

6 years agoFix warnings:
bcoudurier [Tue, 11 Jan 2011 21:16:00 +0000 (21:16 +0000)]
Fix warnings:
ffmpeg.c: In function ‘new_video_stream’:
ffmpeg.c:3701:18: warning: ‘codec_id’ may be used uninitialized in this function
ffmpeg.c: In function ‘new_audio_stream’:
ffmpeg.c:3848:18: warning: ‘codec_id’ may be used uninitialized in this function
ffmpeg.c: In function ‘new_subtitle_stream’:
ffmpeg.c:3926:18: warning: ‘codec_id’ may be used uninitialized in this function

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

6 years agoChange 'arg' type in parse_meta_type, fix warning:
bcoudurier [Tue, 11 Jan 2011 21:14:11 +0000 (21:14 +0000)]
Change 'arg' type in parse_meta_type, fix warning:
ffmpeg.c: In function ‘parse_meta_type’:
ffmpeg.c:3323:13: warning: assignment discards qualifiers from pointer target type

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

6 years agoIn mov demuxer, handle better wrong time scale, fix issue #2528
bcoudurier [Tue, 11 Jan 2011 21:06:37 +0000 (21:06 +0000)]
In mov demuxer, handle better wrong time scale, fix issue #2528

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