Stefano Sabatini
8280e2bd45
Make ffprobe show sample_aspect_ratio and display_aspect_ratio only if
...
sample_aspect_ratio is known.
Avoid to show bogus values, which may confuse both the human and the
machine reader.
Based on a patch by Robert Krüger $(echo lsvfhfs@tjhobm7.ef | tr "b-za" "a-z").
Originally committed as revision 22983 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 23:22:27 +00:00
Stefano Sabatini
6e25b78001
Fix weird brace placement.
...
Originally committed as revision 22982 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 22:45:27 +00:00
Stefano Sabatini
cf103fabbe
Drop AVERROR_NOTSUPP at the next major bump, use AVERROR(ENOSYS)
...
instead which is semantically equivalent.
See the thread:
Subject: [FFmpeg-devel] [RFC] The meaning of AVERROR_NOTSUPP
Date: Sat, 27 Mar 2010 00:51:13 +0100
Originally committed as revision 22981 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 22:26:08 +00:00
Luca Abeni
1ace15f58c
Reduce the verbosity of the v4l2 input device
...
Originally committed as revision 22980 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 21:33:56 +00:00
Luca Abeni
4f54d924bc
Simplify some output messages in the v4l2 input device
...
Originally committed as revision 22979 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 21:32:11 +00:00
Sebastian Vater
4f5e6ef16e
Reindent after rr22977.
...
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22978 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 14:04:11 +00:00
Sebastian Vater
46dcabf82b
Make the IFF demuxer a little more standards-compliant, e.g. respect the size
...
fields of common media header chunks (these can have different sizes depending
on the type of IFF file you read), better handle odd sizes (like RIFF, every
field is padded to word) and handle headerchunks after the BODY chunk.
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22977 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-27 14:03:47 +00:00
Sebastian Vater
726dc06158
Reidnent after r22795.
...
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:39:08 +00:00
Sebastian Vater
fe51b5ce50
Move some branches outside looped code. Should improve the generated asm (and
...
thus performance) slightly.
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22975 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:38:41 +00:00
Sebastian Vater
473147bed0
Switch some ints to unsigned (they can only have positive values, this allows
...
compiler to optimize some math from mul/div to shr/shl). Also add a cast to
uint32_t when calling decodeplane32(), this silences a compiler warning.
Lastly, in decodeplane8/32(), flatten a double-loop into a single-loop and
calculate the length once before entering the loop instead of during every
iteration (since it doesn't change).
Patch by Sebastian Vater <cdgs.basty googlemail com>.
Originally committed as revision 22974 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:37:13 +00:00
Stefano Sabatini
a31e795607
Make ffmpeg use print_error() to make apparent the exact cause of
...
failure happened when trying to open the output file.
Originally committed as revision 22973 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:36:55 +00:00
Stefano Sabatini
ec6791736c
Make file_open() return the error code set in errno if open() fails,
...
rather than always ENOENT.
Originally committed as revision 22972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:36:51 +00:00
Stefano Sabatini
932d775fa2
Implement v4l2 input size autodetection in v4l2_read_header().
...
Move check on frame size after the device is opened and after
device_try_init() is attempted. If the provided size value is 0x0,
perform a VIDIOC_G_FMT ioctl() on the device, which sets size to the
current settings.
Originally committed as revision 22971 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:07:15 +00:00
Sebastian Vater
687dc3555d
Make two functions out of #define hackery.
...
Patch by Sebastian Vater, cdgs D basty A googlemail
Originally committed as revision 22970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:00:57 +00:00
Ronald S. Bultje
90bc36b063
Reindent after r22968.
...
Originally committed as revision 22969 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 21:01:38 +00:00
Ronald S. Bultje
ad6408960b
Write clip-related decimal numbers into hex, where they make more sense.
...
Originally committed as revision 22968 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 21:00:33 +00:00
Måns Rullgård
3bfd582c96
Set ARCH=c with --disable-asm, fix build
...
Originally committed as revision 22967 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 20:30:02 +00:00
Stefano Sabatini
c57a8fefd9
Return meaningful error codes, rather than always -1.
...
Originally committed as revision 22966 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 19:40:15 +00:00
Ronald S. Bultje
2d0525c27c
Fix broken 32-bit clipping, and write numbers in hex instead of decimal so
...
they are easier to understand. Also give the add a 'u' postfix to silence
a pre-c99 compiler warning.
Originally committed as revision 22965 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 13:36:17 +00:00
Robert Krüger
0a6a282a51
Make ffprobe show stream->nb_frames if that info is known.
...
Patch by Robert Krüger $(echo kru3g3r@signal7.d3 | sed -e 's/3/e/g').
Originally committed as revision 22964 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-25 23:35:56 +00:00
Stefano Sabatini
18225025ff
Remove unnecessary width and height variables from v4l2_read_header().
...
Originally committed as revision 22963 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-25 18:47:40 +00:00
Stefano Sabatini
4cf1ba0445
Make avcodec_check_dimensions() return AVERROR(EINVAL) rather than -1
...
in case of invalid picture size.
Originally committed as revision 22962 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-25 15:05:16 +00:00
Stefano Sabatini
2ef6c1242a
Mark av_metadata_set() as deprecated, and use av_metadata_set2()
...
in its place.
av_metadata_set() is going to be dropped at the next major bump.
Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-25 14:27:42 +00:00
Stefano Sabatini
472e12f510
Implement ffserver.c:report_config_error() and a macro for logging
...
error messages / updating the error count.
Originally committed as revision 22960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-24 10:39:28 +00:00
Stefano Sabatini
6675a5bf73
Statically initialize ffserver.c:config_filename, simplify.
...
Originally committed as revision 22959 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-24 10:39:25 +00:00
Stefano Sabatini
931b832add
Consistently prefer @var{VAR} over ``VAR'' for indicating filter
...
parameters.
Originally committed as revision 22958 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-24 10:14:05 +00:00
Michael Niedermayer
6204402409
4th try at getting ansi colors working with a default of color=yes_please.
...
Colors will only be used if the TERM env var is set and NO_COLOR is not set.
Originally committed as revision 22957 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 21:27:26 +00:00
Ronald S. Bultje
0bb848016a
Add acelp_filters.o as QCELP decoder object file.
...
Originally committed as revision 22956 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 16:45:38 +00:00
Ronald S. Bultje
005ad8a0de
Make WMAVoice decoder depend on DCT/RDFT
...
Originally committed as revision 22955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 16:41:55 +00:00
Måns Rullgård
07876e25c8
Workaround for missing llrintf()
...
Originally committed as revision 22954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 16:28:10 +00:00
Michael Niedermayer
aebfb45774
Trying _WIN32 for win32 detection.
...
Originally committed as revision 22953 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 13:15:11 +00:00
Michael Niedermayer
7328cdfa58
Merge the 2 ANSI ESC codes.
...
Originally committed as revision 22952 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 08:11:53 +00:00
Michael Niedermayer
841073ce5e
Reenable ANSI colors, use method from VLC as suggested by ramiro.
...
Please tell us asap if this breaks for your platform & terminal.
Originally committed as revision 22951 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-23 07:33:02 +00:00
Justin Ruggles
cc8538ff93
ac3dec: return smaller of buf_size and frame_size instead of always returning
...
frame_size.
Originally committed as revision 22950 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 21:43:36 +00:00
Måns Rullgård
84368aa629
ARM: fix build for darwin/iphone
...
References to external symbols in asm code need prefixes.
Originally committed as revision 22949 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 21:19:32 +00:00
Michael Niedermayer
2c4b87ea0e
Disable ANSI color code until we figured out how to detect ANSI support in
...
the used terminal.
Originally committed as revision 22948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 20:39:34 +00:00
Baptiste Coudurier
0403c2e3e4
Disable LATM AAC in mpegts, this is not supported and produce too many
...
bug reports. Also warn the user about it.
Originally committed as revision 22947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 20:34:30 +00:00
Michael Niedermayer
51e026d115
Coloring the log with ANSI.
...
Ive checked this on black and white background and found no problem in terms
of readability.
flames welcome.
Originally committed as revision 22946 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 18:58:39 +00:00
Jai Menon
037e9afd37
Fix off-by-1 error in the tag parsing code.
...
Originally committed as revision 22945 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 12:54:50 +00:00
Michael Niedermayer
ddecab2097
Set .supported_samplerates for mpeg audio encoders.
...
Originally committed as revision 22944 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 09:41:45 +00:00
Michael Niedermayer
10d0f5e035
Make sure ffmpeg chooses a supported samplerte if the encoder supports
...
just some.
Originally committed as revision 22943 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 09:40:51 +00:00
Tomas Härdin
951776c478
Made FLIC demuxer capable of handling the videos from "X-COM: Terror from the Deep".
...
Originally committed as revision 22942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 09:04:33 +00:00
Christian Schmidt
03cb8458ce
Support VP6F in Matroska.
...
Patch by Christian Schmidt, schmidt digadd de
Originally committed as revision 22941 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 08:57:28 +00:00
Cyril Russo
9b157b0ccd
Fix compilation error of ffmpeg and ffplay with --disable-avdevice.
...
Patch by Cyril Russo, stage D nexvision A laposte net
Originally committed as revision 22940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 08:55:23 +00:00
Stefano Sabatini
9d30e0682a
Do not initialize res in url_fseek(), in the case !s->seek directly
...
return AVERROR(EPIPE) rather than the pre-defined value of res.
Slightly improve readability.
Originally committed as revision 22939 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-21 21:19:25 +00:00
Ronald S. Bultje
9a32573b49
WMAVoice postfilter.
...
Originally committed as revision 22938 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-21 18:01:34 +00:00
Ronald S. Bultje
b1078e9fe6
Move clipping of audio samples (for those codecs outputting float) from decoder
...
to the audio conversion routines.
Originally committed as revision 22937 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-21 17:57:48 +00:00
Jai Menon
6858ce2ffc
Fix typo.
...
Originally committed as revision 22936 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-21 17:51:37 +00:00
Ronald S. Bultje
805a83d506
Implement QCELP postfilter.
...
Originally committed as revision 22935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-21 17:50:08 +00:00
Ronald S. Bultje
5180a0b197
Make the Sipr16k postfilter function write data into the target/output buffer.
...
Originally committed as revision 22934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-21 17:46:59 +00:00