aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-02-22 00:11:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-02-22 03:45:43 +0100
commitd00bc6a8fdc86c8cfc987e8c13736909bd9af809 (patch)
treec2d54bd88df11795424110bdf6497389717b3197 /libavcodec
parent8a08503b78f59d61cf98b9deb99363e3e07d8599 (diff)
downloadffmpeg-d00bc6a8fdc86c8cfc987e8c13736909bd9af809.tar.gz
r210enc and y41penc: don't set same pkt->size twice
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/r210enc.c1
-rw-r--r--libavcodec/y41penc.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c
index 10ae001915..87bb64bfb6 100644
--- a/libavcodec/r210enc.c
+++ b/libavcodec/r210enc.c
@@ -75,7 +75,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
src_line += pic->linesize[0];
}
- pkt->size = 4 * aligned_width * avctx->height;
pkt->flags |= AV_PKT_FLAG_KEY;
*got_packet = 1;
return 0;
diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index 1b81a5243a..577712543e 100644
--- a/libavcodec/y41penc.c
+++ b/libavcodec/y41penc.c
@@ -80,7 +80,6 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
}
- pkt->size = 1.5 * avctx->width * avctx->height;
pkt->flags |= AV_PKT_FLAG_KEY;
*got_packet = 1;
return 0;