1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavdevice
Stephan Hilb b761ae072a lavd/v4l2: produce a 0 byte packet when a dequeued buffer's size is unexpected
Behave like we do for V4L2_BUF_FLAG_ERROR, implemented in commit 28f20d2ff4 .

For some devices (probably also related to the V4L driver implementation)
it happens that when invoking the ioctl DQBUF, the returned buffer is not
of the expected size. Here are two examples for such occurrences:

    [video4linux2,v4l2 @ 0x258b440] Dequeued v4l2 buffer contains 609596 bytes, but 614400 were expected. Flags: 0x00000001.
    /dev/video1: Invalid data found when processing input

    [video4linux2,v4l2 @ 0x225f440] Dequeued v4l2 buffer contains 609508 bytes, but 614400 were expected. Flags: 0x00000001.
    /dev/video1: Invalid data found when processing input

For the ffmpeg CLI tool this means it will stop capturing and exit.

The described behaviour was observed at least with one OmniVision USB
web cam and with some stk1160 devices.

If you search the web for the error message, you will find quite a few
instances of this problem. Some of them experienced on other devices.

Probably fixes ticket #4795

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
2019-07-30 12:05:52 +02:00
..
tests Merge commit '93fed46a92bab8be176d3e67be4354189a8dbe7f' 2017-03-19 16:08:27 +01:00
.gitignore lavfi,lavd: add gitignore for generated static component lists 2018-04-05 22:08:53 +01:00
alldevices.c lavd: Remove libndi_newtek 2019-03-20 10:42:10 +00:00
alsa_dec.c Merge commit '9200514ad8717c63f82101dc394f4378854325bf' 2016-04-10 20:59:55 +01:00
alsa_enc.c avdevice: do not use AVFrame accessor 2017-04-23 14:35:08 +07:00
alsa.c avdevice/alsa: fix indefinite stop on closing PCM capture 2019-04-23 14:01:23 -08:00
alsa.h lavd/alsa: Double maximum alsa buffer size. 2017-11-27 14:05:28 +01:00
android_camera.c avdevice/android_camera: Fix AVClass.version 2018-04-19 23:44:33 +02:00
avdevice.c Revert "lavd: add new API for iterating input and output devices" 2018-03-31 23:26:31 +01:00
avdevice.h Revert "lavd: add new API for iterating input and output devices" 2018-03-31 23:26:31 +01:00
avdeviceres.rc
avfoundation.m lavd/avfoundation: Set correct default value 0 for option capture_raw_data. 2019-07-08 20:02:41 +02:00
bktr.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
caca.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
decklink_common_c.h avdevice/decklink_enc: add support for setting genlock timing offset 2018-12-02 00:57:10 +01:00
decklink_common.cpp avdevice/decklink: fix checking video mode in SDK version 11 2019-05-05 20:07:35 +02:00
decklink_common.h avdevice/decklink_common: add support for DeckLink SDK 11 2019-04-15 22:22:31 +02:00
decklink_dec_c.c avdevice/decklink_dec: add option to align capture start time 2018-09-30 21:09:12 +02:00
decklink_dec.cpp avdevice/decklink_dec: set configs before listing formats 2019-04-15 22:22:31 +02:00
decklink_dec.h libavdevice/decklink: add support for -sources and -sinks arguments 2017-10-10 20:07:25 +02:00
decklink_enc_c.c avdevice/decklink_enc: add support for setting genlock timing offset 2018-12-02 00:57:10 +01:00
decklink_enc.cpp avdevice/decklink: fix checking video mode in SDK version 11 2019-05-05 20:07:35 +02:00
decklink_enc.h libavdevice/decklink: add support for -sources and -sinks arguments 2017-10-10 20:07:25 +02:00
dshow_capture.h dshow: don't add two instances of same device to graphs 2016-06-23 03:18:16 +02:00
dshow_common.c
dshow_crossbar.c lavd/dshow_crossbar: remove trailing whitespace 2016-03-28 13:31:38 -08:00
dshow_enummediatypes.c avdevice/dshow_enummediatypes: check return of av_malloc 2015-11-06 09:36:57 -05:00
dshow_enumpins.c
dshow_filter.c avdevice/dshow: satisfy alloc contract better 2016-08-20 12:06:50 +02:00
dshow_pin.c avdevice/dshow: Fixed some minor memory leaks 2019-01-03 13:15:45 -03:00
dshow.c avdevice/dshow: Fixed some minor memory leaks 2019-01-03 13:15:45 -03:00
fbdev_common.c Merge commit '87f98a2b9d4c7218ad82bb45347a53b65e5244f3' 2015-07-11 12:25:03 +02:00
fbdev_common.h
fbdev_dec.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
fbdev_enc.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
file_open.c
gdigrab.c libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrab 2019-05-17 21:51:20 +08:00
iec61883.c lavd/iec61883: Fix the include path for poll.h. 2019-01-16 00:13:49 +01:00
internal.h avdevice/internal: add av_warn_unused_result 2015-10-16 17:28:40 -04:00
jack.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
kmsgrab.c kmsgrab: add category for kmsgrab 2018-03-26 22:39:12 +01:00
lavfi.c lav*,tests: remove several register_all calls 2018-04-02 03:26:22 +01:00
libavdevice.v Merge commit '535a742c2695a9e0c586b50d7fa76e318232ff24' 2016-06-27 17:56:47 +02:00
libcdio.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
libdc1394.c lavd/libdc1394: Do not crash if dc1394_camera_new() fails. 2017-08-18 19:20:15 +02:00
Makefile lavd: Remove libndi_newtek 2019-03-20 10:42:10 +00:00
openal-dec.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
opengl_enc_shaders.h all: Make header guard names consistent 2016-01-31 15:44:11 -08:00
opengl_enc.c avdevice/opengl_enc: fix build error using msvc compiler 2019-04-10 12:41:58 +02:00
oss_dec.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
oss_enc.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
oss.c Merge commit 'b586903ae1b89e2d8b99c79f33cabe9b3ca03784' 2017-11-11 16:19:50 -03:00
oss.h Merge commit '8d26c193fb42d08602ac93ece039d4718d029adc' 2015-04-09 21:36:42 +02:00
pulse_audio_common.c
pulse_audio_common.h avdevice/pulse_audio_common: add av_warn_unused_result 2015-10-22 19:03:50 -04:00
pulse_audio_dec.c avdevice/pulse_audio_dec: set channel map 2018-09-14 22:12:54 +02:00
pulse_audio_enc.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
reverse.c avdevice: make ff_reverse available on shared builds 2017-07-20 00:33:29 -03:00
sdl2.c avdevice/sdl2: add option to set window position 2018-10-23 19:42:32 +02:00
sndio_dec.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
sndio_enc.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00
sndio.c Merge commit '8d26c193fb42d08602ac93ece039d4718d029adc' 2015-04-09 21:36:42 +02:00
sndio.h Merge commit '8d26c193fb42d08602ac93ece039d4718d029adc' 2015-04-09 21:36:42 +02:00
timefilter.c Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13' 2016-05-11 19:13:03 +01:00
timefilter.h
utils.c
v4l2-common.c lavd/v4l2-common: Add an entry for Z16. 2019-03-22 12:30:47 +01:00
v4l2-common.h Merge commit '3a165c187da7d74f46f6c1778294e8c5a3a7151f' 2017-03-22 17:55:18 +01:00
v4l2.c lavd/v4l2: produce a 0 byte packet when a dequeued buffer's size is unexpected 2019-07-30 12:05:52 +02:00
v4l2enc.c avdevice/v4l2enc: add video4linux2 name alias 2018-06-18 16:26:23 -08:00
version.h Bump minor versions again on master to keep 4.2 versions separate from master 2019-07-21 18:36:31 +02:00
vfwcap.c lavd/vfwcap: Pass pointers to int instead of long to av_parse_video_size(). 2018-04-18 20:26:44 +02:00
xcbgrab.c lavd/x11grab: fix vertical repositioning 2019-04-06 15:20:36 +02:00
xv.c avdevice: migrate to AVFormatContext->url 2018-01-28 23:06:43 +01:00