| 202 | } |
| 203 | |
| 204 | int ff_encode_get_frame(AVCodecContext *avctx, AVFrame *frame) |
| 205 | { |
| 206 | AVCodecInternal *avci = avctx->internal; |
| 207 | |
| 208 | if (avci->draining) |
| 209 | return AVERROR_EOF; |
| 210 | |
| 211 | if (!avci->buffer_frame->buf[0]) |
| 212 | return AVERROR(EAGAIN); |
| 213 | |
| 214 | av_frame_move_ref(frame, avci->buffer_frame); |
| 215 | |
| 216 | return 0; |
| 217 | } |
| 218 | |
| 219 | int ff_encode_reordered_opaque(AVCodecContext *avctx, |
| 220 | AVPacket *pkt, const AVFrame *frame) |
no test coverage detected