You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
audio encoders: do not set coded_frame->key_frame.
it is already set in avcodec_alloc_frame()
This commit is contained in:
@@ -90,7 +90,6 @@ static av_cold int Faac_encode_init(AVCodecContext *avctx)
|
|||||||
avctx->frame_size = samples_input / avctx->channels;
|
avctx->frame_size = samples_input / avctx->channels;
|
||||||
|
|
||||||
avctx->coded_frame= avcodec_alloc_frame();
|
avctx->coded_frame= avcodec_alloc_frame();
|
||||||
avctx->coded_frame->key_frame= 1;
|
|
||||||
|
|
||||||
/* Set decoder specific info */
|
/* Set decoder specific info */
|
||||||
avctx->extradata_size = 0;
|
avctx->extradata_size = 0;
|
||||||
|
@@ -70,7 +70,6 @@ static av_cold int libgsm_encode_init(AVCodecContext *avctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
avctx->coded_frame= avcodec_alloc_frame();
|
avctx->coded_frame= avcodec_alloc_frame();
|
||||||
avctx->coded_frame->key_frame= 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -156,7 +156,6 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avccontext)
|
|||||||
avccontext->frame_size = OGGVORBIS_FRAME_SIZE;
|
avccontext->frame_size = OGGVORBIS_FRAME_SIZE;
|
||||||
|
|
||||||
avccontext->coded_frame = avcodec_alloc_frame();
|
avccontext->coded_frame = avcodec_alloc_frame();
|
||||||
avccontext->coded_frame->key_frame = 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -181,7 +181,6 @@ static av_cold int MPA_encode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
avctx->coded_frame= avcodec_alloc_frame();
|
avctx->coded_frame= avcodec_alloc_frame();
|
||||||
avctx->coded_frame->key_frame= 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -49,7 +49,6 @@ static av_cold int pcm_encode_init(AVCodecContext *avctx)
|
|||||||
avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id);
|
avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id);
|
||||||
avctx->block_align = avctx->channels * avctx->bits_per_coded_sample/8;
|
avctx->block_align = avctx->channels * avctx->bits_per_coded_sample/8;
|
||||||
avctx->coded_frame= avcodec_alloc_frame();
|
avctx->coded_frame= avcodec_alloc_frame();
|
||||||
avctx->coded_frame->key_frame= 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,6 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
|
|||||||
context->lastSample[0] = context->lastSample[1] = 0;
|
context->lastSample[0] = context->lastSample[1] = 0;
|
||||||
|
|
||||||
avctx->coded_frame= avcodec_alloc_frame();
|
avctx->coded_frame= avcodec_alloc_frame();
|
||||||
avctx->coded_frame->key_frame= 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user