[FFmpeg-cvslog] avcodec/snowenc: remove operations that have become redundant with AVFrame pointers
Michael Niedermayer
git at videolan.org
Wed Apr 9 16:23:31 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 9 16:08:02 2014 +0200| [2ca553ed9cbe4295a04c754a55b307be73915328] | committer: Michael Niedermayer
avcodec/snowenc: remove operations that have become redundant with AVFrame pointers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ca553ed9cbe4295a04c754a55b307be73915328
---
libavcodec/snowenc.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index fd79e69..996ab6b 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -1618,14 +1618,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->m.avctx= s->avctx;
s->m. last_picture.f = s->last_picture[0];
s->m. new_picture.f = s->input_picture;
- s->m.current_picture.f->data[0] = s->current_picture->data[0];
- s->m. last_picture.f->data[0] = s->last_picture[0]->data[0];
- s->m. new_picture.f->data[0] = s-> input_picture->data[0];
s->m. last_picture_ptr= &s->m. last_picture;
- s->m.linesize=
- s->m. last_picture.f->linesize[0] =
- s->m. new_picture.f->linesize[0] =
- s->m.current_picture.f->linesize[0] = stride;
+ s->m.linesize = stride;
s->m.uvlinesize= s->current_picture->linesize[1];
s->m.width = width;
s->m.height= height;
More information about the ffmpeg-cvslog
mailing list