summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 896b8e6f29..7faedf8ed6 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -142,6 +142,10 @@ static int init(sh_video_t *sh){
avctx->get_buffer_callback= get_buffer;
}
#endif
+
+#ifdef CODEC_FLAG_NOT_TRUNCATED
+ avctx->flags|= CODEC_FLAG_NOT_TRUNCATED;
+#endif
avctx->width = sh->disp_w;
avctx->height= sh->disp_h;