avcodec/vda_h264: use av_buffer to manage buffers
authorXidorn Quan <quanxunzhen@gmail.com>
Tue, 21 May 2013 04:12:30 +0000 (12:12 +0800)
committerSebastien Zwickert <dilaroga@gmail.com>
Mon, 27 May 2013 07:05:55 +0000 (09:05 +0200)
commitffd7fd79441f97f1edb25181af0603ff6ea9b342
treebc4d4d4314d682acbd3aff4241d434b6f01e6843
parent53ec1c811e41807a296934eb142f4aebe787e390
avcodec/vda_h264: use av_buffer to manage buffers

This patch fixes a leak of buffer when seeking occurs.
It adds a flag in struct vda_context for compatibility with apps which
currently use it. If the flag is not set, the hwaccel will behave like
before.

Signed-off-by: Sebastien Zwickert <dilaroga@gmail.com>
libavcodec/vda.h
libavcodec/vda_h264.c