Andreas Rheinhardt
99b4acd3fa
avdevice/caca: Don't free AVOpt-enabled string manually
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
395803c78f
avdevice/caca: Make deinit function out of write_trailer
...
Fixes memleaks in case the trailer is never written.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
d92f38c179
avdevice: Constify all devices
...
This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Anton Khirnov
fcf7ef0a81
lavd/caca: do not access deprecated codec context
...
Use the stream timebase instead.
4 years ago
Jun Zhao
3aeb681f07
libavdevice: Update the class name as uniform style
...
Update the class name to uniform indev/outdev style.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
Marton Balint
4bb0409820
avdevice: migrate to AVFormatContext->url
...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Michael Niedermayer
02d08da81f
avdevice/caca: switch to codecpar
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
865f6f410f
avdevice/caca: change AV_OPT_TYPE_STRING to set .str default
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
2c364ef82d
avdevice/caca: small trivial macros adjustments
9 years ago
Clément Bœsch
79f0f1a80b
avdevice/caca: remove space before ':' (English typo, cosmetics)
9 years ago
Clément Bœsch
9d0a6ede30
avdevice/caca: use AV_OPT_TYPE_BOOL for list_drivers option
9 years ago
Michael Niedermayer
a630969535
avdeviece: Read errno before av_log() as the callback from av_log() might affect errno
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Lukasz Marek
f607767d93
lavd: add categories to device implementations
...
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
11 years ago
Michael Niedermayer
6f557a2e12
caca: fix 10l typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
82eba22667
lavd: do not use av_pix_fmt_descriptors directly
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Stefano Sabatini
c0b91348fe
lavd/caca: create display *after* checking dither options
...
Avoid fastidious creation and immediate destroy of the display in case
one of the dither options fails to be set.
Also add NULL checks in write_trailer(), which are now necessary since
the function can be called when not all the components have been
initialized.
13 years ago
Stefano Sabatini
9ce0e19ab6
lavd/caca: provide more meaningful feedback if fails to set a dither option
13 years ago
Stefano Sabatini
fa71471cef
lavd/caca: rename "colors" option to "color"
...
More consistent with libcaca function names. Should not harm since the
device was added less than one day ago.
13 years ago
Stefano Sabatini
d510527885
lavd/caca: sort arguments for -list_dither
13 years ago
Stefano Sabatini
295e0e4b4f
lavd/caca: extend error message for -list_dither option
13 years ago
Paul B Mahol
296c1b6bd1
libcaca output device
13 years ago