Go to the documentation of this file.
19 #ifndef FFTOOLS_FFMPEG_UTILS_H
20 #define FFTOOLS_FFMPEG_UTILS_H
44 return (err0 < 0) ? err0 :
FFMIN(err1, 0);
54 for (
int i = 0;
i < nb_src;
i++) {
63 #endif // FFTOOLS_FFMPEG_UTILS_H
static int err_merge(int err0, int err1)
Merge two return codes - return one of the error codes if at least one of them was negative,...
static int clone_side_data(AVFrameSideData ***dst, int *nb_dst, AVFrameSideData *const *src, int nb_src, unsigned int flags)
Wrapper calling av_frame_side_data_clone() in a loop for all source entries.
#define AVERROR_EOF
End of file.
int av_frame_side_data_clone(AVFrameSideData ***sd, int *nb_sd, const AVFrameSideData *src, unsigned int flags)
Add a new side data entry to an array based on existing side data, taking a reference towards the con...
Rational number (pair of numerator and denominator).
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define i(width, name, range_min, range_max)
Structure to hold side data for an AVFrame.
#define flags(name, subs,...)