[FFmpeg-cvslog] avcodec/vcr1: simplify code drop buf variable

Michael Niedermayer git at videolan.org
Tue Sep 3 16:00:07 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep  3 15:47:21 2013 +0200| [f4e9c768d1021feec717b0ed03bb87ef00d585b8] | committer: Michael Niedermayer

avcodec/vcr1: simplify code drop buf variable

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4e9c768d1021feec717b0ed03bb87ef00d585b8
---

 libavcodec/vcr1.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c
index f97add1..aa73da8 100644
--- a/libavcodec/vcr1.c
+++ b/libavcodec/vcr1.c
@@ -49,10 +49,9 @@ static av_cold int vcr1_decode_init(AVCodecContext *avctx)
 static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
                              int *got_frame, AVPacket *avpkt)
 {
-    const uint8_t *buf        = avpkt->data;
     VCR1Context *const a      = avctx->priv_data;
     AVFrame *const p          = data;
-    const uint8_t *bytestream = buf;
+    const uint8_t *bytestream = avpkt->data;
     const uint8_t *bytestream_end = bytestream + avpkt->size;
     int i, x, y, ret;
 



More information about the ffmpeg-cvslog mailing list