Lines Matching refs:outbuf
54 uint8_t *outbuf;
82 outbuf = malloc(outbuf_size);
100 out_size = avcodec_encode_audio(c, outbuf, outbuf_size, samples);
101 fwrite(outbuf, 1, out_size, f);
104 free(outbuf);
120 uint8_t *outbuf;
140 outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
162 len = avcodec_decode_audio(c, (short *)outbuf, &out_size,
170 fwrite(outbuf, 1, out_size, outfile);
179 free(outbuf);
195 uint8_t *outbuf, *picture_buf;
234 outbuf = malloc(outbuf_size);
265 out_size = avcodec_encode_video(c, outbuf, outbuf_size, picture);
267 fwrite(outbuf, 1, out_size, f);
274 out_size = avcodec_encode_video(c, outbuf, outbuf_size, NULL);
276 fwrite(outbuf, 1, out_size, f);
280 outbuf[0] = 0x00;
281 outbuf[1] = 0x00;
282 outbuf[2] = 0x01;
283 outbuf[3] = 0xb7;
284 fwrite(outbuf, 1, 4, f);
287 free(outbuf);