Commit f0d80688 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

AVI: do not look for strh node if we do not need it

parent 107ac72a
...@@ -702,7 +702,6 @@ aviindex: ...@@ -702,7 +702,6 @@ aviindex:
{ {
avi_track_t *tk = p_sys->track[i]; avi_track_t *tk = p_sys->track[i];
avi_chunk_list_t *p_strl; avi_chunk_list_t *p_strl;
avi_chunk_strh_t *p_strh;
avi_chunk_strf_auds_t *p_auds; avi_chunk_strf_auds_t *p_auds;
if( tk->i_cat != AUDIO_ES ) if( tk->i_cat != AUDIO_ES )
...@@ -716,7 +715,6 @@ aviindex: ...@@ -716,7 +715,6 @@ aviindex:
continue; continue;
} }
p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, i ); p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, i );
p_strh = AVI_ChunkFind( p_strl, AVIFOURCC_strh, 0 );
p_auds = AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0 ); p_auds = AVI_ChunkFind( p_strl, AVIFOURCC_strf, 0 );
if( p_auds->p_wf->wFormatTag != WAVE_FORMAT_PCM && if( p_auds->p_wf->wFormatTag != WAVE_FORMAT_PCM &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment