Skip to content

Commit 200b420

Browse files
committed
to_lavc_vid_conv_init: set tmp_frame attributes
Set tmp_frame width, height and format. Those are not copied by av_frame_copy_props as supposed by commit 5d3c31c (2023-10-31). As such, this partially revers that commit.
1 parent 8f3d3cc commit 200b420

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libavcodec/to_lavc_vid_conv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,9 +1611,9 @@ struct to_lavc_vid_conv *to_lavc_vid_conv_init(codec_t in_pixfmt, int width, int
16111611
return NULL;
16121612
}
16131613
s->out_frame->pts = -1;
1614-
s->out_frame->format = out_pixfmt;
1615-
s->out_frame->width = width;
1616-
s->out_frame->height = height;
1614+
s->tmp_frame->format = s->out_frame->format = out_pixfmt;
1615+
s->tmp_frame->width = s->out_frame->width = width;
1616+
s->tmp_frame->height = s->out_frame->height = height;
16171617
get_av_pixfmt_details(out_pixfmt, &s->out_frame->colorspace,
16181618
&s->out_frame->color_range);
16191619
av_frame_copy_props(s->tmp_frame, s->out_frame);

0 commit comments

Comments
 (0)