Mercurial > libavformat.hg
comparison raw.c @ 1965:f73b9a471583 libavformat
fix probe of 001.vdr-broken-6025
author | michael |
---|---|
date | Thu, 29 Mar 2007 20:22:38 +0000 |
parents | 69c6eb14fdfc |
children | 1a3c9056982a |
comparison
equal
deleted
inserted
replaced
1964:4571a481081d | 1965:f73b9a471583 |
---|---|
335 switch(code){ | 335 switch(code){ |
336 case SEQ_START_CODE: seq++; break; | 336 case SEQ_START_CODE: seq++; break; |
337 case PICTURE_START_CODE: pic++; break; | 337 case PICTURE_START_CODE: pic++; break; |
338 case SLICE_START_CODE: slice++; break; | 338 case SLICE_START_CODE: slice++; break; |
339 case PACK_START_CODE: pspack++; break; | 339 case PACK_START_CODE: pspack++; break; |
340 case VIDEO_ID: | |
341 case AUDIO_ID: pes++; break; | |
342 } | 340 } |
341 if ((code & 0x1f0) == VIDEO_ID) pes++; | |
342 else if((code & 0x1e0) == AUDIO_ID) pes++; | |
343 } | 343 } |
344 } | 344 } |
345 if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes) | 345 if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes) |
346 return AVPROBE_SCORE_MAX/2+1; // +1 for .mpg | 346 return AVPROBE_SCORE_MAX/2+1; // +1 for .mpg |
347 return 0; | 347 return 0; |