lavfi: add error handling to filter_samples().

This commit is contained in:
Anton Khirnov
2012-07-02 20:13:40 +02:00
parent 8d18bc550e
commit cd99146253
15 changed files with 136 additions and 69 deletions

View File

@@ -288,8 +288,12 @@ struct AVFilterPad {
* and should do its processing.
*
* Input audio pads only.
*
* @return >= 0 on success, a negative AVERROR on error. This function
* must ensure that samplesref is properly unreferenced on error if it
* hasn't been passed on to another filter.
*/
void (*filter_samples)(AVFilterLink *link, AVFilterBufferRef *samplesref);
int (*filter_samples)(AVFilterLink *link, AVFilterBufferRef *samplesref);
/**
* Frame poll callback. This returns the number of immediately available