bfi: store palette data in the context
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 25 Apr 2011 18:26:15 +0000 (20:26 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 26 Apr 2011 08:41:33 +0000 (10:41 +0200)
commitff558d7b0166dab5a84dc1c565c2beafa8590c86
treead9f3baeff05b2f4a37c33a1bd4e430526ebac43
parent3788a3c0c03585b0f8180a16d2a15b8e0e033313
bfi: store palette data in the context

Store palette data in the codec context, do not assume that the frame
allocated the first time by avctx->get_buffer will be returned again.

This requires to store the palette which comes with the first frame in
the context, and copy it to the following frames.

Fix trac issue #84.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavcodec/bfi.c