You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/encode: improve the empty frame check
Test for buf[0] rather than data[0] (which is broken for some hwaccel formats).
This commit is contained in:
@@ -366,7 +366,7 @@ int attribute_align_arg avcodec_send_frame(AVCodecContext *avctx, const AVFrame
|
|||||||
if (avci->draining)
|
if (avci->draining)
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
|
|
||||||
if (avci->buffer_frame->data[0])
|
if (avci->buffer_frame->buf[0])
|
||||||
return AVERROR(EAGAIN);
|
return AVERROR(EAGAIN);
|
||||||
|
|
||||||
if (!frame) {
|
if (!frame) {
|
||||||
|
Reference in New Issue
Block a user