/*
- *
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
}
}
+ if (src->hw_frames_ctx) {
+ dst->hw_frames_ctx = av_buffer_ref(src->hw_frames_ctx);
+ if (!dst->hw_frames_ctx) {
+ ret = AVERROR(ENOMEM);
+ goto fail;
+ }
+ }
+
/* duplicate extended data */
if (src->extended_data != src->data) {
int ch = src->channels;
av_buffer_unref(&frame->qp_table_buf);
#endif
+ av_buffer_unref(&frame->hw_frames_ctx);
+
get_frame_defaults(frame);
}