summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index e9dfaf3a6a..069194d182 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1156,6 +1156,8 @@ int MPV_encode_init(AVCodecContext *avctx)
default:
return -1;
}
+
+ avctx->has_b_frames= !s->low_delay;
s->encoding = 1;