| 254 | } |
| 255 | |
| 256 | int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt) |
| 257 | { |
| 258 | FFBSFContext *const bsfi = ffbsfcontext(ctx); |
| 259 | |
| 260 | if (bsfi->eof) |
| 261 | return AVERROR_EOF; |
| 262 | |
| 263 | if (AVPACKET_IS_EMPTY(bsfi->buffer_pkt)) |
| 264 | return AVERROR(EAGAIN); |
| 265 | |
| 266 | av_packet_move_ref(pkt, bsfi->buffer_pkt); |
| 267 | |
| 268 | return 0; |
| 269 | } |
| 270 | |
| 271 | typedef struct BSFListContext { |
| 272 | const AVClass *class; |
no test coverage detected