Merge commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58' into release/2.4
* commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58':
lavf: replace rename() with ff_rename()
Conflicts:
libavformat/hdsenc.c
libavformat/internal.h
See: 95d2fc6a76
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -371,6 +371,20 @@ AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precisio
|
||||
*/
|
||||
int ff_generate_avci_extradata(AVStream *st);
|
||||
|
||||
/**
|
||||
* Wrap errno on rename() error.
|
||||
*
|
||||
* @param oldpath source path
|
||||
* @param newpath destination path
|
||||
* @return 0 or AVERROR on failure
|
||||
*/
|
||||
static inline int ff_rename(const char *oldpath, const char *newpath)
|
||||
{
|
||||
if (rename(oldpath, newpath) == -1)
|
||||
return AVERROR(errno);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allocate extradata with additional FF_INPUT_BUFFER_PADDING_SIZE at end
|
||||
* which is always set to 0.
|
||||
|
Reference in New Issue
Block a user