[Ffmpeg-devel] [PATCH] support for DVHS mpegts (192 bytes)

Nico Sabbi nicola_sabbi
Mon Jan 2 21:19:28 CET 2006


Michael Niedermayer wrote:

>Hi
>
>On Tue, Dec 27, 2005 at 12:45:13PM +0100, Nico Sabbi wrote:
>  
>
>>The subject says everything.
>>    
>>
>
>[...]
>  
>
>>     score    = analyze(buf, size, TS_PACKET_SIZE, NULL);
>>+    dvhs_score    = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL);
>>     fec_score= analyze(buf, size, TS_FEC_PACKET_SIZE, NULL);
>>-//    av_log(NULL, AV_LOG_DEBUG, "score: %d, fec_score: %d \n", score, fec_score);
>>+//    av_log(NULL, AV_LOG_DEBUG, "score: %d, dvsh_score: %d, fec_score: %d \n", score, dvhs_score, fec_score);
>> 
>>     if     (score > fec_score) return TS_PACKET_SIZE;
>>    
>>
>
>shouldnt that be score > fec_score && score >dvhs_score ?
>  
>

yes

>  
>
>>+    else if(dvhs_score > score) return TS_DVHS_PACKET_SIZE;
>>     else if(score < fec_score) return TS_FEC_PACKET_SIZE;
>>     else                       return -1;
>>    
>>
>
>[...]
>
>
>otherwise patch ok, feel free to apply
>
>  
>

committed





More information about the ffmpeg-devel mailing list