Mercurial > libavcodec.hg
comparison mpegvideo.c @ 2962:fde28cb7e3d5 libavcodec
use PRIxN, %zd, %td formats where needed
author | mru |
---|---|
date | Mon, 12 Dec 2005 01:56:46 +0000 |
parents | 64f38f1be88f |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2961:dc544c0e6220 | 2962:fde28cb7e3d5 |
---|---|
2018 if(s->user_specified_pts != AV_NOPTS_VALUE){ | 2018 if(s->user_specified_pts != AV_NOPTS_VALUE){ |
2019 int64_t time= pts; | 2019 int64_t time= pts; |
2020 int64_t last= s->user_specified_pts; | 2020 int64_t last= s->user_specified_pts; |
2021 | 2021 |
2022 if(time <= last){ | 2022 if(time <= last){ |
2023 av_log(s->avctx, AV_LOG_ERROR, "Error, Invalid timestamp=%Ld, last=%Ld\n", pts, s->user_specified_pts); | 2023 av_log(s->avctx, AV_LOG_ERROR, "Error, Invalid timestamp=%"PRId64", last=%"PRId64"\n", pts, s->user_specified_pts); |
2024 return -1; | 2024 return -1; |
2025 } | 2025 } |
2026 } | 2026 } |
2027 s->user_specified_pts= pts; | 2027 s->user_specified_pts= pts; |
2028 }else{ | 2028 }else{ |
2029 if(s->user_specified_pts != AV_NOPTS_VALUE){ | 2029 if(s->user_specified_pts != AV_NOPTS_VALUE){ |
2030 s->user_specified_pts= | 2030 s->user_specified_pts= |
2031 pts= s->user_specified_pts + 1; | 2031 pts= s->user_specified_pts + 1; |
2032 av_log(s->avctx, AV_LOG_INFO, "Warning: AVFrame.pts=? trying to guess (%Ld)\n", pts); | 2032 av_log(s->avctx, AV_LOG_INFO, "Warning: AVFrame.pts=? trying to guess (%"PRId64")\n", pts); |
2033 }else{ | 2033 }else{ |
2034 pts= pic_arg->display_picture_number; | 2034 pts= pic_arg->display_picture_number; |
2035 } | 2035 } |
2036 } | 2036 } |
2037 } | 2037 } |