* Rescale from time base to AVCodecContext.sample_rate. */
| 103 | * Rescale from time base to AVCodecContext.sample_rate. |
| 104 | */ |
| 105 | static av_always_inline int64_t ff_samples_from_time_base(const AVCodecContext *avctx, |
| 106 | int64_t duration) |
| 107 | { |
| 108 | if (!duration) |
| 109 | return duration; |
| 110 | return av_rescale_q(duration, avctx->time_base, |
| 111 | (AVRational){ 1, avctx->sample_rate }); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Check if the elements of codec context matrices (intra_matrix, inter_matrix or |
no test coverage detected