Lines Matching defs:src
113 static int pad_last_frame(AVCodecContext *s, AVFrame *frame, const AVFrame *src)
117 frame->format = src->format;
126 ret = av_frame_copy_props(frame, src);
130 if ((ret = av_samples_copy(frame->extended_data, src->extended_data, 0, 0,
131 src->nb_samples, s->ch_layout.nb_channels,
134 if ((ret = av_samples_set_silence(frame->extended_data, src->nb_samples,
135 frame->nb_samples - src->nb_samples,
311 static int encode_send_frame_internal(AVCodecContext *avctx, const AVFrame *src)
319 AVFrameSideData *sd = av_frame_get_side_data(src, AV_FRAME_DATA_AUDIO_SERVICE_TYPE);
325 if (src->nb_samples > avctx->frame_size) {
336 if (src->nb_samples < avctx->frame_size) {
337 ret = pad_last_frame(avctx, dst, src);
343 } else if (src->nb_samples > avctx->frame_size) {
344 av_log(avctx, AV_LOG_ERROR, "nb_samples (%d) != frame_size (%d)\n", src->nb_samples, avctx->frame_size);
350 ret = av_frame_ref(dst, src);