flvenc: Remove apparently unneeded AAC check.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
C Chatterjee 2012-03-12 05:21:59 +01:00 committed by Michael Niedermayer
parent 86b6e49d92
commit 3c9a86df0e
1 changed files with 0 additions and 4 deletions

View File

@ -445,10 +445,6 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
if (ff_avc_parse_nal_units_buf(pkt->data, &data, &size) < 0)
return -1;
}
} else if (enc->codec_id == CODEC_ID_AAC && pkt->size > 2 &&
(AV_RB16(pkt->data) & 0xfff0) == 0xfff0) {
av_log(s, AV_LOG_ERROR, "malformated aac bitstream, use -absf aac_adtstoasc\n");
return -1;
}
if (flv->delay == AV_NOPTS_VALUE)
flv->delay = -pkt->dts;