diff options
author | Kieran Kunhya <kieran@kunhya.com> | 2016-03-05 18:06:16 +0000 |
---|---|---|
committer | Kieran Kunhya <kieran@kunhya.com> | 2016-03-06 12:38:07 +0000 |
commit | 247fe3e494ca0f31c8ea56f54b11cf947acc4089 (patch) | |
tree | fdbe74e96e060907473c3527ae2878af357be3f5 /libavcodec/cfhd.c | |
parent | 7d6c264e022758b0c0e6958c466c02812b132683 (diff) |
avcodec/cfhd: Fixes cfhd_odd.mov which has a resolution of 496x241
In this case container width/height is better however.
Thanks to koda for the sample
Diffstat (limited to 'libavcodec/cfhd.c')
-rw-r--r-- | libavcodec/cfhd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index e37bef0ca9..98f16d320d 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -467,6 +467,9 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, coeff_data += lowpass_width; } + /* Align to mod-4 position to continue reading tags */ + bytestream2_seek(&gb, bytestream2_tell(&gb) & 3, SEEK_CUR); + /* Copy last line of coefficients if odd height */ if (lowpass_height & 1) { memcpy(&coeff_data[lowpass_height * lowpass_width], |