| 217 | } |
| 218 | |
| 219 | int ff_encode_reordered_opaque(AVCodecContext *avctx, |
| 220 | AVPacket *pkt, const AVFrame *frame) |
| 221 | { |
| 222 | if (avctx->flags & AV_CODEC_FLAG_COPY_OPAQUE) { |
| 223 | int ret = av_buffer_replace(&pkt->opaque_ref, frame->opaque_ref); |
| 224 | if (ret < 0) |
| 225 | return ret; |
| 226 | pkt->opaque = frame->opaque; |
| 227 | } |
| 228 | |
| 229 | return 0; |
| 230 | } |
| 231 | |
| 232 | int ff_encode_encode_cb(AVCodecContext *avctx, AVPacket *avpkt, |
| 233 | AVFrame *frame, int *got_packet) |
no test coverage detected