diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-03-13 13:41:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-13 16:00:28 +0100 |
commit | 2035cc35953c15ddaf8da43cfdd8119bb08b966f (patch) | |
tree | b24215287c22c7536904ca1752da97f8d841cfcd /libavutil/frame.c | |
parent | 9ae6ba288368be42dbd77613e07255d38bbba40e (diff) | |
download | ffmpeg-2035cc35953c15ddaf8da43cfdd8119bb08b966f.tar.gz |
lavu/frame: copy all frame properties in av_frame_copy_props
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index bd3df400b6..3516edb361 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -401,10 +401,16 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src) dst->pkt_pts = src->pkt_pts; dst->pkt_dts = src->pkt_dts; dst->pkt_pos = src->pkt_pos; + dst->pkt_size = src->pkt_size; + dst->pkt_duration = src->pkt_duration; dst->reordered_opaque = src->reordered_opaque; dst->quality = src->quality; + dst->best_effort_timestamp = src->best_effort_timestamp; dst->coded_picture_number = src->coded_picture_number; dst->display_picture_number = src->display_picture_number; + dst->decode_error_flags = src->decode_error_flags; + + av_dict_copy(&dst->metadata, src->metadata, 0); for (i = 0; i < src->nb_side_data; i++) { const AVFrameSideData *sd_src = src->side_data[i]; |