Commit 28811d45 authored by Rafaël Carré's avatar Rafaël Carré

flac demux: don't skip STREAMINFO block twice

Refs: #8830
parent 46fc365f
...@@ -496,6 +496,7 @@ static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streami ...@@ -496,6 +496,7 @@ static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streami
ParseStreamInfo( &i_sample_rate, &i_sample_count, *pp_streaminfo ); ParseStreamInfo( &i_sample_rate, &i_sample_count, *pp_streaminfo );
if( i_sample_rate > 0 ) if( i_sample_rate > 0 )
p_sys->i_length = i_sample_count * INT64_C(1000000)/i_sample_rate; p_sys->i_length = i_sample_count * INT64_C(1000000)/i_sample_rate;
continue;
} }
else if( i_type == META_SEEKTABLE ) else if( i_type == META_SEEKTABLE )
{ {
......
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