You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Do not fail in get_buffer_internal() if pix_fmt planes == 0.
Fixes VDPAU decoding, reported by Ilja Sekler
This commit is contained in:
@@ -758,6 +758,8 @@ do { \
|
|||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
|
||||||
|
|
||||||
planes = av_pix_fmt_count_planes(frame->format);
|
planes = av_pix_fmt_count_planes(frame->format);
|
||||||
|
if (!planes)
|
||||||
|
planes = 1;
|
||||||
if (!desc || planes <= 0) {
|
if (!desc || planes <= 0) {
|
||||||
ret = AVERROR(EINVAL);
|
ret = AVERROR(EINVAL);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Reference in New Issue
Block a user