Mercurial > mplayer.hg
comparison libmpdemux/aviheader.c @ 30088:4977e04f3a18
Add support for parsing audio streams (though should be easy to extend to video)
via libavcodec.
Parsing can be done at the demuxer stage (currently disabled) or at the decoder
(ad_ffmpeg, enabled).
Should allow using the libavcodec AAC, DTS, ... decoders independent of container
format.
author | reimar |
---|---|
date | Sun, 27 Dec 2009 15:28:01 +0000 |
parents | 5babc40c26de |
children | 98dc6ae7ede2 |
comparison
equal
deleted
inserted
replaced
30087:081f53690522 | 30088:4977e04f3a18 |
---|---|
217 if(h.fccType==streamtypeAUDIO){ | 217 if(h.fccType==streamtypeAUDIO){ |
218 sh_audio=new_sh_audio(demuxer,stream_id); | 218 sh_audio=new_sh_audio(demuxer,stream_id); |
219 mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "aviheader", stream_id); | 219 mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "aviheader", stream_id); |
220 memcpy(&sh_audio->audio,&h,sizeof(h)); | 220 memcpy(&sh_audio->audio,&h,sizeof(h)); |
221 sh_audio->stream_delay = (float)sh_audio->audio.dwStart * sh_audio->audio.dwScale/sh_audio->audio.dwRate; | 221 sh_audio->stream_delay = (float)sh_audio->audio.dwStart * sh_audio->audio.dwScale/sh_audio->audio.dwRate; |
222 sh_audio->needs_parsing = 1; | |
222 } | 223 } |
223 last_fccType=h.fccType; | 224 last_fccType=h.fccType; |
224 last_fccHandler=h.fccHandler; | 225 last_fccHandler=h.fccHandler; |
225 if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_strh(&h,MSGL_V); | 226 if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_strh(&h,MSGL_V); |
226 break; } | 227 break; } |