Commit 6efe6148 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '1e8b9738'

* commit '1e8b9738':
  avutil/frame: add all remaining frame properties to av_frame_copy_props
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4c1f61b1 1e8b9738
......@@ -429,8 +429,10 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
dst->pict_type = src->pict_type;
dst->sample_aspect_ratio = src->sample_aspect_ratio;
dst->pts = src->pts;
dst->repeat_pict = src->repeat_pict;
dst->interlaced_frame = src->interlaced_frame;
dst->top_field_first = src->top_field_first;
dst->palette_has_changed = src->palette_has_changed;
dst->sample_rate = src->sample_rate;
dst->opaque = src->opaque;
#if FF_API_AVFRAME_LAVC
......@@ -450,6 +452,8 @@ int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
av_dict_copy(&dst->metadata, src->metadata, 0);
memcpy(dst->error, src->error, sizeof(dst->error));
for (i = 0; i < src->nb_side_data; i++) {
const AVFrameSideData *sd_src = src->side_data[i];
AVFrameSideData *sd_dst = av_frame_new_side_data(dst, sd_src->type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment