Lines Matching refs:ret
143 int ret;
159 if ((ret = ff_get_encode_buffer(ctx, pkt, size, 0)) < 0)
160 return ret;
319 int nnal, i, ret;
378 ret = ff_alloc_a53_sei(frame, 0, &sei_data, &sei_size);
379 if (ret < 0) {
499 ret = encode_nals(ctx, pkt, nal, nnal);
500 if (ret < 0)
501 return ret;
502 } while (!ret && !frame && x264_encoder_delayed_frames(x4->enc));
504 if (!ret)
538 if (ret) {
544 *got_packet = ret;
570 int ret;
572 if ((ret = x264_param_parse(&x4->params, opt, param)) < 0) {
573 if (ret == X264_PARAM_BAD_NAME) {
576 ret = AVERROR(EINVAL);
578 } else if (ret == X264_PARAM_ALLOC_FAILED) {
581 ret = AVERROR(ENOMEM);
586 ret = AVERROR(EINVAL);
590 return ret;
639 int ret;
936 ret = parse_opts(avctx, param, "1");
937 if (ret < 0)
938 return ret;
940 ret = parse_opts(avctx, param, val);
941 if (ret < 0)
942 return ret;
960 if ((ret = x264_param_parse(&x4->params, en->key, en->value)) < 0) {
965 if (ret == X264_PARAM_ALLOC_FAILED)