You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
frame_thread_encoder: pass frame pict type and quality
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -230,6 +230,8 @@ int ff_thread_video_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVF
|
|||||||
if(ret<0)
|
if(ret<0)
|
||||||
return ret;
|
return ret;
|
||||||
new->pts = frame->pts;
|
new->pts = frame->pts;
|
||||||
|
new->quality = frame->quality;
|
||||||
|
new->pict_type = frame->pict_type;
|
||||||
av_image_copy(new->data, new->linesize, (const uint8_t **)frame->data, frame->linesize,
|
av_image_copy(new->data, new->linesize, (const uint8_t **)frame->data, frame->linesize,
|
||||||
avctx->pix_fmt, avctx->width, avctx->height);
|
avctx->pix_fmt, avctx->width, avctx->height);
|
||||||
frame = new;
|
frame = new;
|
||||||
|
Reference in New Issue
Block a user