avcodec: add a cook parser to get subpacket duration

Fixes jittery video playback of rm files with cook audio.
This commit is contained in:
Justin Ruggles
2012-04-10 16:33:45 -04:00
parent acb1730218
commit b0e9edc44f
5 changed files with 64 additions and 2 deletions

View File

@ -205,6 +205,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
st->codec->block_align = coded_framesize;
break;
case CODEC_ID_COOK:
st->need_parsing = AVSTREAM_PARSE_HEADERS;
case CODEC_ID_ATRAC3:
case CODEC_ID_SIPR:
avio_rb16(pb); avio_r8(pb);