This should detect caes where these functions are called in unclean destinations
{
int i, ret = 0;
+ av_assert1(dst->width == 0 && dst->height == 0);
+ av_assert1(dst->channels == 0);
+
dst->format = src->format;
dst->width = src->width;
dst->height = src->height;
void av_frame_move_ref(AVFrame *dst, AVFrame *src)
{
+ av_assert1(dst->width == 0 && dst->height == 0);
+ av_assert1(dst->channels == 0);
+
*dst = *src;
if (src->extended_data == src->data)
dst->extended_data = dst->data;