metasound & twinvqdec: return the number of read bytes from read_bitstream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-25 17:23:13 +02:00
parent f5dae4894d
commit cbb7f56dfe
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
}
}
return 0;
return (get_bits_count(&gb) + 7) / 8;
}
typedef struct MetasoundProps {

View File

@ -312,7 +312,7 @@ static int twinvq_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
}
}
return 0;
return (get_bits_count(&gb) + 7) / 8;
}
static av_cold int twinvq_decode_init(AVCodecContext *avctx)