@@ -85,7 +85,7 @@ static int mp3_header_decompress(AVBSFContext *ctx, AVPacket *out)
header |= (bitrate_index&1)<<9;
header |= (bitrate_index>>1)<<12;
- header |= (frame_size == buf_size + 4)<<16; //FIXME actually set a correct crc instead of 0
+ header |= (frame_size == buf_size + 4)<<16;
ret = av_new_packet(out, frame_size);
if (ret < 0)
@@ -109,6 +109,10 @@ static int mp3_header_decompress(AVBSFContext *ctx, AVPacket *out)
}
}
+ if (frame_size == buf_size + 6) {
+ //FIXME actually set a correct crc instead of 0
+ AV_WN16(out->data + 4, 0);
+ }
AV_WB32(out->data, header);
ret = 0;
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> --- libavcodec/mp3_header_decompress_bsf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)