* if DR1 is disabled in get_buffer_callback silently fallback to
non-dr rendering
Originally committed as revision 1208 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
}