mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit 'c24469e812'
* commit 'c24469e812':
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:
commit
12f203a098
2 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue