GUACAMOLE-217: FFmpeg's decoupled I/O functions were not available until libavcodec 57.37.100.
This commit is contained in:
parent
4da4ce7279
commit
d40b2d8153
@ -111,8 +111,8 @@ int guacenc_avcodec_encode_video(guacenc_video* video, AVFrame* frame) {
|
|||||||
packet.data = NULL;
|
packet.data = NULL;
|
||||||
packet.size = 0;
|
packet.size = 0;
|
||||||
|
|
||||||
/* For libavcodec < 57.16.0: input/output was not decoupled */
|
/* For libavcodec < 57.37.100: input/output was not decoupled */
|
||||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,16,0)
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,37,100)
|
||||||
/* Write frame to video */
|
/* Write frame to video */
|
||||||
int got_data;
|
int got_data;
|
||||||
if (avcodec_encode_video2(video->context, &packet, frame, &got_data) < 0) {
|
if (avcodec_encode_video2(video->context, &packet, frame, &got_data) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user