[FFmpeg-devel] [PATCH] lavf: remove commented check in compute_pkt_fields2()

Stefano Sabatini stefasab at gmail.com
Sun Nov 6 02:16:41 CET 2011


From: Stefano Sabatini <stefano.sabatini-lala at poste.it>

---
 libavformat/utils.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 4399176..6cefdef 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3183,9 +3183,6 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt){
     av_dlog(s, "compute_pkt_fields2: pts:%"PRId64" dts:%"PRId64" cur_dts:%"PRId64" b:%d size:%d st:%d\n",
             pkt->pts, pkt->dts, st->cur_dts, delay, pkt->size, pkt->stream_index);
 
-/*    if(pkt->pts == AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE)
-        return AVERROR(EINVAL);*/
-
     /* duration field */
     if (pkt->duration == 0) {
         compute_frame_duration(&num, &den, st, NULL, pkt);
-- 
1.7.4.1



More information about the ffmpeg-devel mailing list