diff options
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 8e9487b542..56e4171c55 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -396,7 +396,11 @@ static void get_buffer(struct AVCodecContext *avctx, int width, int height, int if(init_vo(sh)<0){ printf("init_vo failed\n"); +#if LIBAVCODEC_BUILD >= 4632 + return -1; +#else return; +#endif } if(pict_type==B_TYPE) |