mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
v4l2: bufferpool: Do not resize compressed buffer
Avoid resizing compressed buffer to their maximum size. This fixes a regression that caused valid but very large streams to be generated. Fixes #2953 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5286>
This commit is contained in:
parent
2f3fea33ca
commit
65350b601e
1 changed files with 3 additions and 0 deletions
|
@ -1303,6 +1303,9 @@ gst_v4l2_buffer_pool_dqbuf (GstV4l2BufferPool * pool, GstBuffer ** buffer,
|
|||
group->planes[i].bytesused, i, group->buffer.flags,
|
||||
GST_TIME_ARGS (timestamp), pool->num_queued, outbuf, old_buffer_state);
|
||||
|
||||
if (GST_VIDEO_INFO_FORMAT (&pool->caps_info) == GST_VIDEO_FORMAT_ENCODED)
|
||||
break;
|
||||
|
||||
/* Ensure our offset matches the expected plane size, or image size if
|
||||
* there is only one memory */
|
||||
if (group->n_mem == 1) {
|
||||
|
|
Loading…
Reference in a new issue