[FFmpeg-cvslog] r210enc and y41penc: don't set same pkt->size twice
Paul B Mahol
git at videolan.org
Wed Feb 22 03:57:57 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Feb 22 00:11:27 2012 +0000| [d00bc6a8fdc86c8cfc987e8c13736909bd9af809] | committer: Michael Niedermayer
r210enc and y41penc: don't set same pkt->size twice
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d00bc6a8fdc86c8cfc987e8c13736909bd9af809
---
libavcodec/r210enc.c | 1 -
libavcodec/y41penc.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c
index 10ae001..87bb64b 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 1b81a52..5777125 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;
More information about the ffmpeg-cvslog
mailing list