# HG changeset patch # User kabi # Date 1037299429 0 # Node ID 6eda806efda984d20c0189c2c51f44c914bb8148 # Parent 4ba00af1258913fbc4850666314d09fbed75587d * not checking for get_buffer_callback - it would be user's error * if DR1 is disabled in get_buffer_callback silently fallback to non-dr rendering diff -r 4ba00af12589 -r 6eda806efda9 dv.c --- a/dv.c Thu Nov 14 18:02:07 2002 +0000 +++ b/dv.c Thu Nov 14 18:43:49 2002 +0000 @@ -561,11 +561,12 @@ avctx->width = width; avctx->height = height; - if (avctx->flags & CODEC_FLAG_DR1 && avctx->get_buffer_callback) + if (avctx->flags & CODEC_FLAG_DR1) { s->width = -1; avctx->dr_buffer[0] = avctx->dr_buffer[1] = avctx->dr_buffer[2] = 0; - if(avctx->get_buffer_callback(avctx, width, height, I_TYPE) < 0){ + if(avctx->get_buffer_callback(avctx, width, height, I_TYPE) < 0 + && avctx->flags & CODEC_FLAG_DR1) { fprintf(stderr, "get_buffer() failed\n"); return -1; }