Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-08 03:06:06 +0400
committerPaul B Mahol <onemda@gmail.com>2013-07-08 03:06:06 +0400
commitec4e042f33f98f0c7b2d1de052acfdcf7e51a885 (patch)
tree9f4a3f32adbfc19d117d650caa3e41a7ed5d3390 /libavcodec/gif.c
parentbd03f99d05d0b55c9fe632e970650a19ab7930c9 (diff)
gif: remove unused AVFrame from encoder private context
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r--libavcodec/gif.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 388f9b2718..98e31f0533 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -41,7 +41,6 @@
typedef struct {
const AVClass *class;
- AVFrame picture;
LZWState *lzw;
uint8_t *buf;
AVFrame *last_frame;
@@ -233,7 +232,7 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pict, int *got_packet)
{
GIFContext *s = avctx->priv_data;
- AVFrame *const p = &s->picture;
+ AVFrame *const p = (AVFrame *)pict;
uint8_t *outbuf_ptr, *end;
const uint32_t *palette = NULL;
int ret;
@@ -243,7 +242,6 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
outbuf_ptr = pkt->data;
end = pkt->data + pkt->size;
- *p = *pict;
p->pict_type = AV_PICTURE_TYPE_I;
p->key_frame = 1;