avcodec/avpicture: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-08 16:09:31 +02:00
parent fa8c6c1350
commit f703c8cc09

View File

@ -66,7 +66,7 @@ int avpicture_alloc(AVPicture *picture,
void avpicture_free(AVPicture *picture)
{
av_free(picture->data[0]);
av_freep(&picture->data[0]);
}
void av_picture_copy(AVPicture *dst, const AVPicture *src,