1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavcodec
Jorge Ramirez-Ortiz 44188993a1 avcodec/v4l2: set sizeimage param for non-raw buffers [fixes #6716]
Some V4L2 drivers fail to allocate buffers when sizeimage is not set
to a max value. This is indeed the case for s5p-mfc [1]

Most drivers should be able to calculate this value from the frame
dimensions and format - or at least have their own default.

However since this work around should not impact those drivers doing
the "right thing" this commit just provides such a default.

The calculations were extracted from the v4l2 driver used to develop
the ffmpeg v4l2_m2m support [2]. See venc.c and vdec.c

[1] linux.git/drivers/media/platform/s5p-mfc
[2] linux.git/drivers/media/platform/qcom/venus/
2017-10-04 23:14:37 +01:00
..
2017-07-11 13:22:02 +07:00
2017-09-10 19:08:33 +02:00
2017-10-03 19:47:37 -03:00
2017-02-15 12:46:01 +01:00
2017-02-15 12:46:01 +01:00
2017-05-29 14:08:07 +02:00
2017-07-16 16:53:02 +02:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-07-07 15:23:58 -04:00
2017-05-01 17:55:22 +02:00
2017-05-08 12:30:09 +02:00
2017-08-20 02:59:57 +02:00
2017-07-07 15:29:57 -04:00
2017-03-20 09:23:15 +01:00
2017-04-23 14:27:47 +07:00
2017-06-11 10:00:16 +02:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-05-23 15:25:11 +02:00
2017-08-30 12:13:01 +02:00
2017-09-16 19:55:03 +02:00
2017-08-30 12:13:01 +02:00
2017-02-21 00:40:20 +01:00
2017-10-03 19:47:37 -03:00
2017-04-23 14:27:47 +07:00
2017-03-21 12:38:20 +01:00
2017-06-18 14:05:57 +02:00
2017-07-12 20:36:13 +02:00
2017-07-12 20:36:13 +02:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-08-11 04:28:52 +02:00
2017-02-21 00:40:20 +01:00
2017-09-07 12:08:32 +02:00
2017-09-28 22:41:08 +01:00
2017-08-18 17:18:32 +01:00
2017-07-20 08:24:46 +01:00
2017-07-07 15:26:35 -04:00
2017-05-31 16:08:46 +02:00
2017-08-07 13:09:41 +02:00
2017-04-23 14:27:47 +07:00
2017-07-26 06:13:05 +07:00
2017-07-11 13:22:02 +07:00
2017-07-01 12:03:34 -03:00
2017-09-10 19:08:23 +02:00
2017-09-22 01:33:22 +02:00
2017-05-25 20:08:31 +02:00
2017-05-25 14:30:04 +02:00
2017-10-04 23:14:37 +01:00
2017-07-14 02:30:37 +02:00
2017-07-14 02:30:37 +02:00
2017-05-21 13:23:22 +02:00
2017-07-05 03:19:27 +02:00
2017-09-22 01:33:22 +02:00
2017-10-03 19:47:37 -03:00
2017-07-24 17:52:42 +02:00
2017-08-17 16:30:06 +02:00