mirror of https://github.com/FFmpeg/FFmpeg.git
Allocating coded_frame is what most encoders do anyway, so it makes sense to always allocate and free it in a single place. Moreover a lot of encoders freed the frame with av_freep() instead of the correct API av_frame_free(). This bring uniformity to encoder behaviour and prevents applications from erroneusly accessing this field when not allocated. Additionally this helps isolating encoders that export information with coded_frame, and heavily simplifies its deprecation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>pull/140/head
parent
91f9b6579a
commit
d6604b29ef
49 changed files with 17 additions and 419 deletions
Loading…
Reference in new issue