mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
aom: av1enc: restrict allowed input width and height
Restrict allowed input resolution to something sensible in light of libaom CVE-2024-5171. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7327>
This commit is contained in:
parent
7b2bc55e80
commit
532214785a
2 changed files with 3 additions and 3 deletions
|
@ -1144,7 +1144,7 @@
|
|||
"long-name": "AV1 Encoder",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "video/x-raw:\n format: { I420, Y42B, Y444, YV12 }\n framerate: [ 0/1, 2147483647/1 ]\n width: [ 4, 2147483647 ]\n height: [ 4, 2147483647 ]\n",
|
||||
"caps": "video/x-raw:\n format: { I420, Y42B, Y444, YV12 }\n framerate: [ 0/1, 2147483647/1 ]\n width: [ 4, 65536 ]\n height: [ 4, 65536 ]\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
|
|
|
@ -276,8 +276,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("video/x-raw, "
|
||||
"format = (string) { I420, Y42B, Y444, YV12 }, "
|
||||
"framerate = (fraction) [0, MAX], "
|
||||
"width = (int) [ 4, MAX ], "
|
||||
"height = (int) [ 4, MAX ]")
|
||||
"width = (int) [ 4, 65536 ], "
|
||||
"height = (int) [ 4, 65536 ]")
|
||||
);
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
|
Loading…
Reference in a new issue