lavc: rework handling of refcounted_frames=0
authorAnton Khirnov <anton@khirnov.net>
Fri, 29 Nov 2013 19:49:18 +0000 (20:49 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 9 Dec 2013 07:54:29 +0000 (08:54 +0100)
commit37a749012aaacc801fe860428417a6d7b81c103f
tree2836c24eb98b2d6caa63dfb5b7e28fd5ff749c19
parentdf7aba52b51007db50410abe15fe28391abd8757
lavc: rework handling of refcounted_frames=0

Use only proper AVFrame API (no assigning of whole frames, since that
hardcodes sizeof(AVFrame) into lavc).

Make a copy of the side data, so the caller can use av_frame_unref/free
on non-refcounted frames, eliminating the need for
avcodec_get_frame_defaults()/avcodec_free_frame().
libavcodec/internal.h
libavcodec/utils.c