OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d54be2
)
avcodec/fmvc: fix decoding of odd size videos
author
Paul B Mahol
<onemda@gmail.com>
Fri, 17 Feb 2017 09:46:52 +0000
(10:46 +0100)
committer
Paul B Mahol
<onemda@gmail.com>
Fri, 17 Feb 2017 09:48:04 +0000
(10:48 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/fmvc.c
patch
|
blob
|
history
diff --git
a/libavcodec/fmvc.c
b/libavcodec/fmvc.c
index
54bb6f9
..
c5e5b3d
100644
(file)
--- a/
libavcodec/fmvc.c
+++ b/
libavcodec/fmvc.c
@@
-441,7
+441,7
@@
static int decode_frame(AVCodecContext *avctx,
for (y = 0; y < avctx->height; y++) {
memcpy(dst, src, avctx->width * s->bpp);
dst -= frame->linesize[0];
- src +=
avctx->width * s->bpp
;
+ src +=
s->stride * 4
;
}
} else {
int block, nb_blocks, type, k, l;
@@
-518,7
+518,7
@@
static int decode_frame(AVCodecContext *avctx,
for (y = 0; y < avctx->height; y++) {
memcpy(ddst, ssrc, avctx->width * s->bpp);
ddst -= frame->linesize[0];
- ssrc +=
avctx->width * s->bpp
;
+ ssrc +=
s->stride * 4
;
}
}