summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-09 16:08:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-09 16:17:22 +0200
commit2ca553ed9cbe4295a04c754a55b307be73915328 (patch)
tree2eedf0a8e9c9954f7fa2f8fc74fc289a148fb9bf /libavcodec
parent59a53842d360ddaf883a0415b11013038fa57da0 (diff)
avcodec/snowenc: remove operations that have become redundant with AVFrame pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snowenc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index fd79e69e1f..996ab6b95a 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;