Commit 8b2c3d2a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'cdf6eb5a'

* commit 'cdf6eb5a':
  vc1: Do not return an error when skipping b frames
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7228bdee cdf6eb5a
......@@ -5997,7 +5997,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
/* skip B-frames if we don't have reference frames */
if (s->last_picture_ptr == NULL && (s->pict_type == AV_PICTURE_TYPE_B || s->droppable)) {
goto err;
goto end;
}
if ((avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == AV_PICTURE_TYPE_B) ||
(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != AV_PICTURE_TYPE_I) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment