diff options
| author | Anton Khirnov <[email protected]> | 2013-11-01 18:07:22 +0100 | 
|---|---|---|
| committer | Anton Khirnov <[email protected]> | 2013-11-18 18:09:48 +0100 | 
| commit | a553c6a347d3d28d7ee44c3df3d5c4ee780dba23 (patch) | |
| tree | d7f3a20b6d439d56d5bf5856f47f8da5652e820b /libavcodec/pthread_frame.c | |
| parent | cc20fbcd39c7b60602edae4f7deb092ecfd3c975 (diff) | |
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.
Diffstat (limited to 'libavcodec/pthread_frame.c')
| -rw-r--r-- | libavcodec/pthread_frame.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 3dff9608f9..626d4f724b 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -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)  | 
