mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avcodec/audiotoolboxnec: set set keyframe flag in output packets
Don't depend on the generic code setting this. This is in preparation for a following change. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 495c891e3998bdee7e7680390d9aea2efb5c9a5d)
This commit is contained in:
parent
07a92c1a64
commit
f7d59ab17a
@ -576,6 +576,7 @@ static int ffat_encode(AVCodecContext *avctx, AVPacket *avpkt,
|
||||
avctx->frame_size,
|
||||
&avpkt->pts,
|
||||
&avpkt->duration);
|
||||
avpkt->flags |= AV_PKT_FLAG_KEY;
|
||||
} else if (ret && ret != 1) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Encode error: %i\n", ret);
|
||||
return AVERROR_EXTERNAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user