Message ID | 1490727961-9760-1-git-send-email-rsbultje@gmail.com |
---|---|
State | Accepted |
Commit | 027ee9b3ed697ff080be0f14b47a11c89ce68cdd |
Headers | show |
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index b618be0..295763a 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -244,7 +244,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, { int err = 0; - if (dst != src) { + if (dst != src && (for_user || !(av_codec_get_codec_descriptor(src)->props & AV_CODEC_PROP_INTRA_ONLY))) { dst->time_base = src->time_base; dst->framerate = src->framerate; dst->width = src->width;