* Helper function for decoders that may use a BSF that changes extradata. * This function will get the extradata from the BSF. */
| 30 | * This function will get the extradata from the BSF. |
| 31 | */ |
| 32 | static inline void ff_decode_get_extradata(const AVCodecContext *avctx, |
| 33 | const uint8_t **extradata, |
| 34 | int *extradata_size) |
| 35 | { |
| 36 | // Given that we unconditionally insert a null BSF when no BSF is |
| 37 | // explicitly requested, we can just use the BSF's par_out here. |
| 38 | *extradata = avctx->internal->bsf->par_out->extradata; |
| 39 | *extradata_size = avctx->internal->bsf->par_out->extradata_size; |
| 40 | } |
| 41 | |
| 42 | #endif /* AVCODEC_DECODE_BSF_H */ |
no outgoing calls
no test coverage detected