[PATCH] support for DVHS mpegts (192 bytes)
The subject says everything.
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 ?
+ 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 -- Michael
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
participants (3)
-
michaelni@gmx.at -
nicola_sabbi@fastwebnet.it -
nsabbi@tiscali.it