Mercurial > libavformat.hg
comparison utils.c @ 6201:f5cb0b79f58c libavformat
Make "invalid dts/pts combination" a debug instead of a warning message.
Patch by XBMC
author | cehoyos |
---|---|
date | Wed, 30 Jun 2010 23:01:44 +0000 |
parents | fa244b4fe683 |
children | 78ee17447ff3 |
comparison
equal
deleted
inserted
replaced
6200:ac9ea0fde990 | 6201:f5cb0b79f58c |
---|---|
906 | 906 |
907 // some mpeg2 in mpeg-ps lack dts (issue171 / input_file.mpg) | 907 // some mpeg2 in mpeg-ps lack dts (issue171 / input_file.mpg) |
908 // we take the conservative approach and discard both | 908 // we take the conservative approach and discard both |
909 // Note, if this is misbehaving for a H.264 file then possibly presentation_delayed is not set correctly. | 909 // Note, if this is misbehaving for a H.264 file then possibly presentation_delayed is not set correctly. |
910 if(delay==1 && pkt->dts == pkt->pts && pkt->dts != AV_NOPTS_VALUE && presentation_delayed){ | 910 if(delay==1 && pkt->dts == pkt->pts && pkt->dts != AV_NOPTS_VALUE && presentation_delayed){ |
911 av_log(s, AV_LOG_WARNING, "invalid dts/pts combination\n"); | 911 av_log(s, AV_LOG_DEBUG, "invalid dts/pts combination\n"); |
912 pkt->dts= pkt->pts= AV_NOPTS_VALUE; | 912 pkt->dts= pkt->pts= AV_NOPTS_VALUE; |
913 } | 913 } |
914 | 914 |
915 if (pkt->duration == 0) { | 915 if (pkt->duration == 0) { |
916 compute_frame_duration(&num, &den, st, pc, pkt); | 916 compute_frame_duration(&num, &den, st, pc, pkt); |