Skip to content

Commit

Permalink
fixed to_lavc_memcpy_data unset AVFrame::opaque
Browse files Browse the repository at this point in the history
Fixed a crash on (dummy) conversion from Y216 to AV_PIX_FMT_Y212 (just
memcpy), because the state given in AVFrame::opaque was not passed
through task-specific AVFrames.
  • Loading branch information
MartinPulec committed Mar 22, 2024
1 parent c7bc796 commit ec17ed7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libavcodec/to_lavc_vid_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,7 @@ struct to_lavc_vid_conv *to_lavc_vid_conv_init(codec_t in_pixfmt, int width, int
s->out_frame_parts[i]->linesize[0] = s->out_frame->linesize[0];
s->out_frame_parts[i]->linesize[1] = s->out_frame->linesize[1];
s->out_frame_parts[i]->linesize[2] = s->out_frame->linesize[2];
s->out_frame_parts[i]->opaque = s->out_frame->opaque;
}
}

Expand Down

0 comments on commit ec17ed7

Please sign in to comment.