mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-02 01:47:47 +00:00
cmdutils: move grow_array() from avconv to cmdutils.
This commit is contained in:
parent
dad09ff93f
commit
cac651c834
4 changed files with 29 additions and 40 deletions
10
cmdutils.h
10
cmdutils.h
|
@ -333,4 +333,14 @@ int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame,
|
|||
*/
|
||||
void exit_program(int ret);
|
||||
|
||||
/**
|
||||
* Realloc array to hold new_size elements of elem_size.
|
||||
* Calls exit_program() on failure.
|
||||
*
|
||||
* @param elem_size size in bytes of each element
|
||||
* @param size new element count will be written here
|
||||
* @return reallocated array
|
||||
*/
|
||||
void *grow_array(void *array, int elem_size, int *size, int new_size);
|
||||
|
||||
#endif /* LIBAV_CMDUTILS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue