Browse Source

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
tags/n3.1
Kieran Kunhya 10 years ago
parent
commit
247fe3e494
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/cfhd.c

+ 3
- 0
libavcodec/cfhd.c View File

@@ -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],


Loading…
Cancel
Save