1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00
FFmpeg/libavdevice
Andre Wolokita 44e95a017c lavd/v4l2: do not fail when VIDIOC_ENUMSTD returns ENODATA
As of September 14 2012, v4l_enumstd() will return ENODATA
when a device's std field is set to 0. That is, the device
does not have a standard format. In order to properly
handle this case, v4l2_set_parameters should catch the
ENODATA code and break instead of failing.

Below is the v4l2-core commit describing this change.

>>commit a5338190efc7cfa8c99a6856342a77d21c9a05cf
>>Author: Hans Verkuil <hans.verkuil@cisco.com>
>>Date:   Fri Sep 14 06:45:43 2012 -0300
>>
>>    [media] v4l2-core: tvnorms may be 0 for a given input, handle that case
>>
>>    Currently the core code looks at tvnorms to see whether ENUMSTD
>>    or G_PARM should be enabled. This is not a good check for drivers
>>    that support the STD API on one input and the DV Timings API on another.
>>    In that case tvnorms may be 0.
>>    Instead check whether s_std is present (for ENUMSTD) or whether g_std or
>>    current_norm is present for g_parm.
>>    Also, in the enumstd core function return ENODATA if tvnorms is 0,
>>    because in that case the current input does not support the STD API
>>    and ENUMSTD should return ENODATA for that.
>>
>>    Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
>>    Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi>
>>    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2014-08-18 09:20:00 +02:00
..
alldevices.c Add AVFoundation input device. 2014-04-11 17:51:33 +02:00
alsa-audio-common.c
alsa-audio-dec.c
alsa-audio-enc.c
alsa-audio.h
avdevice.c lavd: no default device unless explicitly set 2014-04-12 19:14:57 +02:00
avdevice.h Various small spelling fixes. 2014-04-22 20:44:31 +02:00
avdeviceres.rc
avfoundation.m lavd/avfoundation: Add device category. 2014-08-05 01:36:26 +02:00
bktr.c Merge commit 'c0de9159a7ba5707aa0a5c2bc73ae78b7b87ec46' 2014-07-18 21:48:37 +02:00
caca.c
decklink_enc_c.c
decklink_enc.cpp
decklink_enc.h
dshow_capture.h
dshow_common.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
dshow.c lavd/dshow: use av_codec_get_id() 2014-08-07 13:03:17 +02:00
dv1394.c
dv1394.h
fbdev_common.c lavd/fbdev_enc: move list device code to fbdev_common 2014-04-30 00:35:42 +02:00
fbdev_common.h lavd/fbdev_enc: move list device code to fbdev_common 2014-04-30 00:35:42 +02:00
fbdev_dec.c Merge commit 'c0de9159a7ba5707aa0a5c2bc73ae78b7b87ec46' 2014-07-18 21:48:37 +02:00
fbdev_enc.c lavd/fbdev_enc: move list device code to fbdev_common 2014-04-30 00:35:42 +02:00
file_open.c
gdigrab.c
iec61883.c lavf/mpegts: rename ff_mpegts_parse_*() to avpriv_mpegts_parse_*() 2014-08-07 04:28:11 +02:00
jack_audio.c Merge commit 'c0de9159a7ba5707aa0a5c2bc73ae78b7b87ec46' 2014-07-18 21:48:37 +02:00
lavfi.c avdevice/lavfi: Simplify non-AV stream check 2014-08-07 15:41:17 +02:00
libavdevice.v
libcdio.c
libdc1394.c
Makefile Merge commit 'd6e1d37100af568211f28ec0bcf7958a3a2a299e' 2014-07-19 13:39:12 +02:00
openal-dec.c
opengl_enc_shaders.h
opengl_enc.c fix various typos 2014-06-03 10:58:19 -08:00
oss_audio_dec.c Merge commit 'd6e1d37100af568211f28ec0bcf7958a3a2a299e' 2014-07-19 13:39:12 +02:00
oss_audio_enc.c Merge commit 'd6e1d37100af568211f28ec0bcf7958a3a2a299e' 2014-07-19 13:39:12 +02:00
oss_audio.c avdevice/oss_audio: Check SNDCTL_DSP_GETFMTS failure, print a warning but continue 2014-07-31 21:19:15 +02:00
oss_audio.h Merge commit 'd6e1d37100af568211f28ec0bcf7958a3a2a299e' 2014-07-19 13:39:12 +02:00
pulse_audio_common.c lavd/pulse_audio_common: add context helper functions 2014-04-18 01:42:17 +02:00
pulse_audio_common.h lavd/pulse_audio_common: add context helper functions 2014-04-18 01:42:17 +02:00
pulse_audio_dec.c avdevice/pulse_audio_dec: reimplement using the non simple API 2014-07-09 01:36:01 +02:00
pulse_audio_enc.c avdevice/pulse_audio_enc: use getter function for AVFrame.channels 2014-07-28 20:06:11 +02:00
qtkit.m avdevice/qtkit: fix include 2014-04-24 05:12:07 +02:00
sdl.c
sndio_common.c
sndio_common.h
sndio_dec.c
sndio_enc.c
timefilter.c
timefilter.h
v4l2-common.c
v4l2-common.h
v4l2.c lavd/v4l2: do not fail when VIDIOC_ENUMSTD returns ENODATA 2014-08-18 09:20:00 +02:00
v4l2enc.c v4l2enc: adding AVClass 2014-07-31 18:59:20 +02:00
v4l.c
version.h Merge commit '1985c2e75c607ac51bfd8dc87d2957a5edf2b6f8' 2014-08-10 00:26:45 +02:00
vfwcap.c Merge commit 'a6a27fede94efe48aad1dcc9d5e000d2de71c7b2' 2014-08-15 12:45:35 +02:00
x11grab.c lavd/x11grab: reindent after last commit. 2014-07-17 18:28:58 +02:00
xv.c avdevice/xv: fix missing { 2014-06-30 21:32:19 +02:00