get_buffer(): do not initialize the data.

There may be more decoders that rely on this. Those should be found and
fixed.
This commit is contained in:
Anton Khirnov
2013-01-30 16:41:08 +01:00
parent 64ed397635
commit d2a25c4032
2 changed files with 0 additions and 6 deletions

View File

@@ -1563,11 +1563,6 @@ static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbu
av_freep(&buf);
return ret;
}
/* XXX this shouldn't be needed, but some tests break without this line
* those decoders are buggy and need to be fixed.
* the following tests fail:
*/
memset(buf->base[0], 128, ret);
av_pix_fmt_get_chroma_sub_sample(s->pix_fmt,
&h_chroma_shift, &v_chroma_shift);