* Wrapper calling av_frame_side_data_clone() in a loop for all source entries. * It does not clear dst beforehand. */
| 48 | * Wrapper calling av_frame_side_data_clone() in a loop for all source entries. |
| 49 | * It does not clear dst beforehand. */ |
| 50 | static inline int clone_side_data(AVFrameSideData ***dst, int *nb_dst, |
| 51 | AVFrameSideData * const *src, int nb_src, |
| 52 | unsigned int flags) |
| 53 | { |
| 54 | for (int i = 0; i < nb_src; i++) { |
| 55 | int ret = av_frame_side_data_clone(dst, nb_dst, src[i], flags); |
| 56 | if (ret < 0) |
| 57 | return ret; |
| 58 | } |
| 59 | |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | #endif // FFTOOLS_FFMPEG_UTILS_H |
no test coverage detected