Fix thumbnail creation (#38354)

it's not a stream
This commit is contained in:
Shane Smiskol
2026-07-15 22:51:41 -07:00
committed by GitHub
parent 61608db786
commit 60716edc37
@@ -93,7 +93,7 @@ void JpegEncoder::compressToJpeg(uint8_t *y_plane, uint8_t *u_plane, uint8_t *v_
frame->data[2] = v_plane;
// Required for MJPEG qscale to take effect (global_quality alone is not enough).
frame->quality = FF_QP2LAMBDA * MJPEG_QSCALE;
frame->pts = 0;
frame->pts = AV_NOPTS_VALUE;
int err = avcodec_send_frame(codec_ctx, frame);
if (err < 0) {