avformat/movenc: free eac3 private data only when closing the stream
authorJames Almer <jamrial@gmail.com>
Fri, 29 Mar 2019 01:36:25 +0000 (22:36 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 31 Mar 2019 23:08:28 +0000 (20:08 -0300)
commit27c94c57dc84da8125225fda7d241be57d19b391
tree63936922cc7ad40aee444d883f5191a98779edb1
parent605e3303109e7945a841c5fb5ff60881393933a3
avformat/movenc: free eac3 private data only when closing the stream

This makes sure the data is available when writing the moov atom during the
second pass triggered by the faststart movflag.

Fixes ticket #7780

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/movenc.c