Lines Matching refs:ret
45 int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
51 if (ret)
52 ret[i] = r;
58 int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int jobnr, int threadnr), void *arg, int *ret, int count)
64 if (ret)
65 ret[i] = r;
117 int ret = 0;
152 ret = AVERROR(ENOMEM);
160 ret = AVERROR(ENOMEM);
170 ret = AVERROR(ENOMEM);
178 if (codec->priv_class && (ret = av_opt_set_dict(avctx->priv_data, options)) < 0)
183 if ((ret = av_opt_set_dict(avctx, options)) < 0)
188 ret = AVERROR(EINVAL);
196 ret = ff_set_dimensions(avctx, avctx->coded_width, avctx->coded_height);
198 ret = ff_set_dimensions(avctx, avctx->width, avctx->height);
199 if (ret < 0)
222 ret = AVERROR(EINVAL);
227 ret = AVERROR(EINVAL);
252 ret = AVERROR(EINVAL);
271 ret = AVERROR_EXPERIMENTAL;
282 ret = ff_encode_preinit(avctx);
284 ret = ff_decode_preinit(avctx);
285 if (ret < 0)
289 ret = ff_frame_thread_encoder_init(avctx);
290 if (ret < 0)
298 ret = ff_thread_init(avctx);
300 if (ret < 0) {
311 ret = codec2->init(avctx);
313 if (ret < 0) {
321 ret=0;
351 ret = AVERROR(EINVAL);
355 ret = AVERROR(EINVAL);
371 return ret;
668 int ret = av_channel_layout_describe(&enc->ch_layout, buf, sizeof(buf));
669 if (ret >= 0)