Browse Source

ffmpeg: dont disable dr1 when changing dimensions are encountered in codec_get_buffer().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
9aeacc9546
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      ffmpeg.c

+ 0
- 1
ffmpeg.c View File

@@ -565,7 +565,6 @@ static int codec_get_buffer(AVCodecContext *s, AVFrame *frame)
if (buf->w != s->width || buf->h != s->height || buf->pix_fmt != s->pix_fmt) { if (buf->w != s->width || buf->h != s->height || buf->pix_fmt != s->pix_fmt) {
av_freep(&buf->base[0]); av_freep(&buf->base[0]);
av_free(buf); av_free(buf);
ist->dr1 = 0;
if ((ret = alloc_buffer(ist, s, &buf)) < 0) if ((ret = alloc_buffer(ist, s, &buf)) < 0)
return ret; return ret;
} }


Loading…
Cancel
Save