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:
Anton Khirnov 2013-11-01 18:07:22 +01:00
parent cc20fbcd39
commit a553c6a347
4 changed files with 26 additions and 24 deletions

View file

@ -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)