Lines Matching defs:buf
64 if (avpkt->data || avpkt->buf) {
65 av_log(avctx, AV_LOG_ERROR, "avpkt->{data,buf} != NULL in avcodec_default_get_encode_buffer()\n");
69 ret = av_buffer_realloc(&avpkt->buf, avpkt->size + AV_INPUT_BUFFER_PADDING_SIZE);
74 avpkt->data = avpkt->buf->data;
86 av_assert0(!avpkt->data && !avpkt->buf);
93 if (!avpkt->data || !avpkt->buf) {
146 int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
155 ret = ffcodec(avctx->codec)->cb.encode_sub(avctx, buf, buf_size, sub);
167 if (!avci->buffer_frame->buf[0])
186 if (!frame->buf[0] && !avci->draining) {
193 if (!frame->buf[0]) {
259 av_assert0(!avpkt->data || avpkt->buf);
301 av_assert0(!avpkt->data || avpkt->buf);
368 if (avci->buffer_frame->buf[0])
421 char buf[128];
422 snprintf(buf, sizeof(buf), "%d", avctx->pix_fmt);
424 (char *)av_x_if_null(av_get_pix_fmt_name(avctx->pix_fmt), buf));
494 char buf[128];
495 snprintf(buf, sizeof(buf), "%d", avctx->sample_fmt);
497 (char *)av_x_if_null(av_get_sample_fmt_name(avctx->sample_fmt), buf));
527 char buf[512];
528 int ret = av_channel_layout_describe(&avctx->ch_layout, buf, sizeof(buf));
530 av_log(avctx, AV_LOG_ERROR, "Specified channel layout '%s' is not supported\n", buf);
539 char buf[512];
540 av_get_channel_layout_string(buf, sizeof(buf), -1, avctx->channel_layout);
543 buf, channels, avctx->channels);