Justin Ruggles
0c039db4d8
alsa: limit buffer_size to 32768 frames.
In testing, the file output plugin gave a max buffer size of about 20 million
frames, which is way more than what is really needed and causes a memory
allocation error on my system.
(cherry picked from commit e35c674d13 )
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Justin Ruggles
6ed533f561
alsa: fallback to buffer_size/4 for period_size.
buffer_size/4 is the value used by aplay. This fixes output to null
devices, e.g. writing ALSA output to a file.
(cherry picked from commit 8bfd7f6a47 )
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Carl Eugen Hoyos
acb62e998f
alsa: support unsigned variants of already supported signed formats.
(cherry picked from commit 2359aeb52d )
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
15 years ago
Carl Eugen Hoyos
bf5ed476ba
alsa: add support for more formats.
Specifically, f32, f64, s32, s24, a-law and mu-law.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 921715edff )
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
14 years ago
Sven C. Dack
2f2c60400a
x11grab: remove a memory allocation and the associated memcpy.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
15 years ago
Reimar Döffinger
c673c90515
oss,sndio: simplify by using FFMIN.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
15 years ago
Luca Barbato
2c6fb9f032
v4l2: do not force NTSC as standard
Setting a standard is meaningful only for analog capture devices.
14 years ago
Anton Khirnov
367732832f
lavf,lavc: free avoptions in a generic way.
It's simpler and less error-prone.
Fixes some memleaks along the way.
14 years ago
Anton Khirnov
ff494cbdaf
x11grab: add framerate private option.
14 years ago
Anton Khirnov
a3b15e411d
fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
14 years ago
Anton Khirnov
1572484f62
bktr: don't error when AVFormatParameters.time_base isn't set.
There's a private option for it now.
14 years ago
Stefano Sabatini
94bed8e582
Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().
This fixes warnings about avcodec_get_pix_fmt_name() being deprecated.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Anton Khirnov
bd7c1d35a6
bktr: get default framerate from video standard.
14 years ago
Diego Biurrun
f190f676bc
Replace custom DEBUG preprocessor trickery by the standard one.
14 years ago
Diego Biurrun
2366462429
Replace #ifdef + av_log() combinations by av_dlog().
14 years ago
Anton Khirnov
fefa67d536
v4l2: remove one forgotten use of AVFormatParameters.pix_fmt.
14 years ago
Anton Khirnov
4078ed2631
vfwcap: add a framerate private option.
14 years ago
Anton Khirnov
c21324eeb6
v4l2: add a framerate private option.
14 years ago
Anton Khirnov
121ef2e26d
libdc1394: add a framerate private option.
14 years ago
Anton Khirnov
1556186a62
fbdev: add a framerate private option.
14 years ago
Anton Khirnov
3e3db4d93d
bktr: add a framerate private option.
14 years ago
Anton Khirnov
7a70e01b26
v4l2: don't leak video standard string on error.
14 years ago
Anton Khirnov
d576bbf3eb
v4l2: add a pixel_format private option.
14 years ago
Anton Khirnov
2e0e1e712a
libdc1394: add a pixel_format private option.
14 years ago
Anton Khirnov
724a900c45
x11grab: add video_size private option.
14 years ago
Anton Khirnov
3102fb0351
x11grab: factorize returning error codes.
14 years ago
Anton Khirnov
3e15ea2150
vfwcap: add video_size private option.
14 years ago
Anton Khirnov
8fe7b6443f
v4l2: add video_size private option.
14 years ago
Anton Khirnov
82b5aa0add
v4l2: factorize returning error codes.
This will be useful in the following commit.
14 years ago
Anton Khirnov
fd48620e3e
libdc1394: add video_size private option.
14 years ago
Anton Khirnov
284bac2e77
libdc1394: return meaninful error codes.
14 years ago
Anton Khirnov
33e0369672
bktr: add video_size private option.
14 years ago
Anton Khirnov
3577416212
bktr: factorize returning error codes.
This will be useful in the following commit.
14 years ago
Anton Khirnov
3d96c13e43
v4l: include avdevice.h
Fixes build.
14 years ago
Anton Khirnov
aaea149035
lavdevice: mark v4l for removal on next major bump.
14 years ago
Anton Khirnov
2341c97e8d
libdc1394: fix compilation.
Add a forgotten comma and move options/class definition outside of
HAVE_LIBDC1394_1.
14 years ago
Anton Khirnov
d20576d01b
lavf: deprecate AVFormatParameters.channel.
14 years ago
Anton Khirnov
79405e57dc
libdc1394: add a private option for channel.
14 years ago
Anton Khirnov
986f4f4918
dv1394: add a private option for channel.
14 years ago
Anton Khirnov
3d2a418605
v4l2: reindent.
14 years ago
Anton Khirnov
a02fd06ab7
v4l2: add a private option for channel.
14 years ago
Anton Khirnov
fc68a8f703
lavf: deprecate AVFormatParameters.standard.
14 years ago
Anton Khirnov
b3da269211
v4l2: add a private option for video standard.
14 years ago
Anton Khirnov
a861ffeffa
v4l: add a private option for video standard.
14 years ago
Anton Khirnov
eb040dbbd3
dv1394: add a private option for video standard.
14 years ago
Anton Khirnov
e199eb44fd
bktr: add a private option for video standard.
14 years ago
Anton Khirnov
bffd4dd1d3
lavf: deprecate AVFormatParameters.{channels,sample_rate}.
14 years ago
Anton Khirnov
2ea8faf39f
ALSA: add channels and sample_rate private options.
14 years ago
Anton Khirnov
003e63b6df
oss: add channels and sample_rate private options.
14 years ago
Anton Khirnov
a1a15a9993
sndio: add channels and sample_rate private options.
14 years ago