diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-29 23:49:18 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-09 11:54:29 +0400 |
commit | 37a749012aaacc801fe860428417a6d7b81c103f (patch) | |
tree | 2836c24eb98b2d6caa63dfb5b7e28fd5ff749c19 /libavcodec/internal.h | |
parent | df7aba52b51007db50410abe15fe28391abd8757 (diff) |
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().
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index c1108fffbb..c4f0981ba8 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -83,7 +83,7 @@ typedef struct AVCodecInternal { */ int last_audio_frame; - AVFrame to_free; + AVFrame *to_free; FramePool *pool; |