1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

lavfi: add ff_parse_pixel_format() internal function, and use it

Reduce code duplication.
This commit is contained in:
Stefano Sabatini
2011-08-22 14:56:23 +02:00
parent 2c6348ea67
commit e26782a9b4
4 changed files with 33 additions and 15 deletions

View File

@@ -63,6 +63,16 @@ int ff_fmt_is_in(int fmt, const int *fmts);
/* Functions to parse audio format arguments */
/**
* Parse a pixel format.
*
* @param ret pixel format pointer to where the value should be written
* @param arg string to parse
* @param log_ctx log context
* @return 0 in case of success, a negative AVERROR code on error
*/
int ff_parse_pixel_format(enum PixelFormat *ret, const char *arg, void *log_ctx);
/**
* Parse a sample rate.
*