diff options
author | Carl Eugen Hoyos | 2013-03-13 12:47:56 +0100 |
---|---|---|
committer | Carl Eugen Hoyos | 2013-03-13 13:05:42 +0100 |
commit | f1b716c79b958156e04d5d1683e7e53152cfe914 (patch) | |
tree | e7624ecd4e8c9a1a93404173e3359648b20c01d7 | |
parent | f45fdb123f39bf7341731aa2e381d7f0f623db70 (diff) |
avframe: Copy buffer type in copy_props.
Fixes VDPAU decoding with MPlayer.
-rw-r--r-- | libavutil/frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 4ec7bee769..bd3df400b6 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -395,6 +395,9 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src) dst->top_field_first = src->top_field_first; dst->sample_rate = src->sample_rate; dst->opaque = src->opaque; +#if FF_API_AVFRAME_LAVC + dst->type = src->type; +#endif dst->pkt_pts = src->pkt_pts; dst->pkt_dts = src->pkt_dts; dst->pkt_pos = src->pkt_pos; |