Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-13 12:08:50 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-06-13 12:08:50 +0400
commit60657ee37afb5388b75430db95cbce5146731c63 (patch)
tree0d802ab312d22ed5bc1f42fd3bcaa4bf4e027f28 /libavcodec/4xm.c
parent90c8863a749432608b05d2b7d93475e8ebd62bbb (diff)
parente7a44f87d07655ec0cd31c315936931674434340 (diff)
Merge commit 'e7a44f87d07655ec0cd31c315936931674434340'
* commit 'e7a44f87d07655ec0cd31c315936931674434340': 4xm: refactor fourxm_read_header Conflicts: libavformat/4xm.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r--libavcodec/4xm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 18b1fe9756..a396a6d739 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -411,12 +411,14 @@ static int decode_p_frame(FourXContext *f, AVFrame *frame,
int x, y;
const int width = f->avctx->width;
const int height = f->avctx->height;
- uint16_t *src = (uint16_t *)f->last_picture->data[0];
uint16_t *dst = (uint16_t *)frame->data[0];
const int stride = frame->linesize[0] >> 1;
+ uint16_t *src;
unsigned int bitstream_size, bytestream_size, wordstream_size, extra,
bytestream_offset, wordstream_offset;
+ src = (uint16_t *)f->last_picture->data[0];
+
if (f->version > 1) {
extra = 20;
if (length < extra)