Lines Matching defs:ret
42 int ret;
48 ret = avcodec_send_frame(enc_ctx, frame);
49 if (ret < 0) {
54 while (ret >= 0) {
55 ret = avcodec_receive_packet(enc_ctx, pkt);
56 if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
58 else if (ret < 0) {
74 int i, ret, x, y;
127 ret = avcodec_open2(c, codec, NULL);
128 if (ret < 0) {
129 fprintf(stderr, "Could not open codec: %s\n", av_err2str(ret));
148 ret = av_frame_get_buffer(frame, 0);
149 if (ret < 0) {
168 ret = av_frame_make_writable(frame);
169 if (ret < 0)