[Libav-user] stubborn valgrind issue

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 31 11:15:22 CEST 2013

Brian Lewis <brian at ...> writes:

> Hi, I'm getting some invalid reads and uses of uninitialized 
> values in valgrind that I can't clear up.

(valgrind output missing.)

> int buf_size = avpicture_get_size(PIX_FMT_OUT, WIDTH, HEIGHT);
> uint8_t *buf = malloc(buf_size);

Does it get better if you allocate more memory?

Not necessarily related:
On some (broken) platforms, you have to use av_malloc() 
to ensure sufficient alignment.

Carl Eugen

More information about the Libav-user mailing list