OSDN Git Service

lavc/utils: fix metadata audio frame memleak in case of non refcounted frames.
authorClément Bœsch <ubitux@gmail.com>
Tue, 19 Mar 2013 21:47:49 +0000 (22:47 +0100)
committerClément Bœsch <ubitux@gmail.com>
Thu, 21 Mar 2013 00:07:51 +0000 (01:07 +0100)
commit4331484b8d70529b79e14ab22afe81b8fe203046
tree3586317bc6ec91530e5fcf620c68169f9d3c8fb3
parent76fdced10920abc189465d0a222f582c7ca53c70
lavc/utils: fix metadata audio frame memleak in case of non refcounted frames.

The metadata must be set before saving the frame to avci->to_free,
otherwise it will leak.

Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Clément Bœsch <ubitux@gmail.com>
libavcodec/utils.c