mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavc: use buf[0] instead of data[0] in checks whether a frame is allocated
data[0] may be NULL for valid frames with hwaccel pixel formats.
This commit is contained in:
parent
cc20fbcd39
commit
a553c6a347
4 changed files with 26 additions and 24 deletions
|
|
@ -757,7 +757,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
|||
avctx->get_buffer2 == avcodec_default_get_buffer2);
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
if (!f->f->data[0])
|
||||
if (!f->f->buf[0])
|
||||
return;
|
||||
|
||||
if (avctx->debug & FF_DEBUG_BUFFERS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue