mirror of https://github.com/FFmpeg/FFmpeg.git
Currently, it also tests whether extended_data points to something different than the AVFrame's data array and frees extended_data if it is different. Yet this is only necessary for one of its three callers, namely av_frame_unref(); meanwhile the other two callers took measures to avoid this (or rather, to make it to an av_free(NULL)). This commit moves this chunk to av_frame_unref() (so that get_frame_defaults() now treats its input as uninitialized) and removes the now superfluous code in the other two callers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>pull/375/head
parent
fc01a703de
commit
6c57e0b4a8
1 changed files with 4 additions and 6 deletions
Loading…
Reference in new issue