You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
Merge commit 'c24469e812501903a46a06eff9722a82e136e841'
* commit 'c24469e812501903a46a06eff9722a82e136e841': utils: add workaround for AVHWAccel in ff_get_buffer compat code configure: Remove a stray msmpeg4v1 encoder declaration Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -761,7 +761,9 @@ do { \
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
|
||||
|
||||
planes = av_pix_fmt_count_planes(frame->format);
|
||||
if (!planes)
|
||||
/* workaround for AVHWAccel plane count of 0, buf[0] is used as
|
||||
check for allocated buffers: make libavcodec happy */
|
||||
if (desc && desc->flags & PIX_FMT_HWACCEL)
|
||||
planes = 1;
|
||||
if (!desc || planes <= 0) {
|
||||
ret = AVERROR(EINVAL);
|
||||
|
Reference in New Issue
Block a user