Skip to content

Commit

Permalink
to_lavc_vid_conv_init: set tmp_frame attributes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinPulec committed Mar 1, 2024
1 parent 4b4a949 commit cba9699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libavcodec/to_lavc_vid_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1611,9 +1611,9 @@ struct to_lavc_vid_conv *to_lavc_vid_conv_init(codec_t in_pixfmt, int width, int
return NULL;
}
s->out_frame->pts = -1;
s->out_frame->format = out_pixfmt;
s->out_frame->width = width;
s->out_frame->height = height;
s->tmp_frame->format = s->out_frame->format = out_pixfmt;
s->tmp_frame->width = s->out_frame->width = width;
s->tmp_frame->height = s->out_frame->height = height;
get_av_pixfmt_details(out_pixfmt, &s->out_frame->colorspace,
&s->out_frame->color_range);
av_frame_copy_props(s->tmp_frame, s->out_frame);
Expand Down

0 comments on commit cba9699

Please sign in to comment.