| 534 | } |
| 535 | |
| 536 | int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, |
| 537 | const short *samples) |
| 538 | { |
| 539 | if(buf_size < FF_MIN_BUFFER_SIZE && 0){ |
| 540 | av_log(avctx, AV_LOG_ERROR, "buffer smaller than minimum size\n"); |
| 541 | return -1; |
| 542 | } |
| 543 | if((avctx->codec->capabilities & CODEC_CAP_DELAY) || samples){ |
| 544 | int ret = avctx->codec->encode(avctx, buf, buf_size, samples); |
| 545 | avctx->frame_number++; |
| 546 | return ret; |
| 547 | }else |
| 548 | return 0; |
| 549 | } |
| 550 | |
| 551 | int attribute_align_arg avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size, |
| 552 | const AVFrame *pict) |
no test coverage detected