mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/libdav1d: fix build after a recent API break
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
759589b55e
commit
752659327d
@ -140,12 +140,18 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
|
|||||||
}
|
}
|
||||||
|
|
||||||
av_fifo_generic_write(dav1d->cache, &pkt, sizeof(pkt), libdav1d_fifo_write);
|
av_fifo_generic_write(dav1d->cache, &pkt, sizeof(pkt), libdav1d_fifo_write);
|
||||||
} else {
|
|
||||||
data = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
res = dav1d_decode(dav1d->c, data, &p);
|
res = dav1d_send_data(dav1d->c, data);
|
||||||
|
if (res < 0) {
|
||||||
|
if (res == -EINVAL)
|
||||||
|
res = AVERROR_INVALIDDATA;
|
||||||
|
if (res != -EAGAIN)
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
res = dav1d_get_picture(dav1d->c, &p);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
if (res == -EINVAL)
|
if (res == -EINVAL)
|
||||||
res = AVERROR_INVALIDDATA;
|
res = AVERROR_INVALIDDATA;
|
||||||
|
Loading…
Reference in New Issue
Block a user