avfilter/REDUCE_FORMATS: fix bug that ended reducing too early

Prior to this it was possible that format reduction was ended
before it fully propagated leading to failure later in picking
formats.
No testcase with unmodified source exists, the case was reproduced
with less aggressive list merging though.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-07-22 01:55:48 +02:00
parent 682e8a694f
commit 5169111145
1 changed files with 1 additions and 0 deletions

View File

@ -616,6 +616,7 @@ do { \
\ \
if (!out_link->in_ ## list->nb) { \ if (!out_link->in_ ## list->nb) { \
add_format(&out_link->in_ ##list, fmt); \ add_format(&out_link->in_ ##list, fmt); \
ret = 1; \
break; \ break; \
} \ } \
\ \