Lines Matching defs:ret
178 int ret;
189 ret = 0;
192 ret = AVERROR_EXTERNAL;
197 if (ret < 0)
198 return ret;
221 av_unused int ret;
256 ret = amf_init_from_d3d11_device(avctx, frames_ctx->device_ctx->hwctx);
257 if (ret < 0)
258 return ret;
263 ret = amf_init_from_dxva2_device(avctx, frames_ctx->device_ctx->hwctx);
264 if (ret < 0)
265 return ret;
287 ret = amf_init_from_d3d11_device(avctx, device_ctx->hwctx);
288 if (ret < 0)
289 return ret;
294 ret = amf_init_from_dxva2_device(avctx, device_ctx->hwctx);
295 if (ret < 0)
296 return ret;
440 int ret;
445 if ((ret = ff_get_encode_buffer(avctx, pkt, size, 0)) < 0) {
446 return ret;
495 int ret;
497 if ((ret = amf_load_library(avctx)) == 0) {
498 if ((ret = amf_init_context(avctx)) == 0) {
499 if ((ret = amf_init_encoder(avctx)) == 0) {
505 return ret;
583 int ret;
593 ret = ff_encode_get_frame(avctx, frame);
594 if (ret < 0 && ret != AVERROR_EOF)
595 return ret;
699 ret = av_fifo_write(ctx->timestamp_list, &pts, 1);
700 if (ret < 0)
701 return ret;
715 ret = amf_copy_buffer(avctx, avpkt, buffer);
729 AMF_RETURN_IF_FALSE(ctx, ret >= 0, ret, "amf_copy_buffer() failed with error %d\n", ret);
740 ret = av_fifo_write(ctx->timestamp_list, &pts, 1);
741 if (ret < 0)
742 return ret;
763 ret = AVERROR_EOF;
765 ret = AVERROR(EAGAIN);
767 ret = 0;
769 return ret;