Skip to content

Commit 1c51df2

Browse files
authored
client_examples: explicitly include avcodec.h for ffmpeg example
Build fails with the master branch of FFmpeg with these kinds of errors: ``` ../client_examples/vnc2mpg.c:55:5: error: unknown type name ‘AVCodecContext’ AVCodecContext *enc; ^~~~~~~~~~~~~~ ``` This patch adds `libavcodec/avcodec.h` in vnc2mpg.c
1 parent 81ebe5e commit 1c51df2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client_examples/vnc2mpg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <math.h>
3030
#include <signal.h>
3131
#include <sys/time.h>
32+
#include <libavcodec/avcodec.h>
3233
#include <libavformat/avformat.h>
3334
#include <libswscale/swscale.h>
3435
#include <rfb/rfbclient.h>

0 commit comments

Comments
 (0)