summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-29 20:49:18 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-09 08:54:29 +0100
commit37a749012aaacc801fe860428417a6d7b81c103f (patch)
tree2836c24eb98b2d6caa63dfb5b7e28fd5ff749c19 /libavcodec/internal.h
parentdf7aba52b51007db50410abe15fe28391abd8757 (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.h2
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;