Hi Michael, On Tue, 2007-01-09 at 01:51 +0100, Michael Niedermayer wrote: [...] > > 2) The "last" filter who use the AVFrame buffer is responsible for > > freeing it. [...] > what if there are several Fout? (several outputs) You are right. I forgot to mention that using this mechanism a single frame buffer cannot be pushed to two different output filters, and a copy is needed for the second output (well, I had something similar witten on my old notes, but it was too confused and I skipped it :). If this additional copy is not acceptable, then I think refcounting is the only way to go (or am I missing some other possible solution?). Is it acceptable to add a reference_count field in AVFrame? (or should the "opaque" field be used?). An alternative would be to use an "extended avframe" structure defined as { FF_COMMON_FRAME; int reference_count } Thanks, Luca -- _____________________________________________________________________________ Copy this in your signature, if you think it is important: N O W A R ! ! !
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4