+ hdr_info->channel_layout = hdr.channel_layout;
+ hdr_info->samples = hdr.num_blocks * 256;
+ hdr_info->service_type = hdr.bitstream_mode;
+ if (hdr.bitstream_mode == 0x7 && hdr.channels > 1)
+ hdr_info->service_type = AV_AUDIO_SERVICE_TYPE_KARAOKE;
+ if(hdr.bitstream_id>10)
+ hdr_info->codec_id = AV_CODEC_ID_EAC3;
+ else if (hdr_info->codec_id == AV_CODEC_ID_NONE)
+ hdr_info->codec_id = AV_CODEC_ID_AC3;
+
+ *need_next_header = (hdr.frame_type != EAC3_FRAME_TYPE_AC3_CONVERT);
+ *new_frame_start = (hdr.frame_type != EAC3_FRAME_TYPE_DEPENDENT);