diff mbox series

[FFmpeg-devel,6/6] avformat/mpegts: Fix argument type for av_log

Message ID 20201227174938.27369-6-michael@niedermayer.cc
State Accepted
Commit 654b21ef176a807bf4e8359a4ed52c629d766100
Headers show
Series [FFmpeg-devel,1/6] avformat/mxfdec: Do not clear arrays in mxf_read_index_entry_array()
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Michael Niedermayer Dec. 27, 2020, 5:49 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marton Balint Dec. 27, 2020, 5:58 p.m. UTC | #1
On Sun, 27 Dec 2020, Michael Niedermayer wrote:

> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
> libavformat/mpegts.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index cc292ab929..efff5130de 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c
> @@ -3140,7 +3140,7 @@ static int mpegts_read_header(AVFormatContext *s)
>         s->bit_rate  = TS_PACKET_SIZE * 8 * 27000000LL / ts->pcr_incr;
>         st->codecpar->bit_rate = s->bit_rate;
>         st->start_time      = ts->cur_pcr;
> -        av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%d\n",
> +        av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%"PRId64"\n",
>                 st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr);

LGTM, thanks.

Marton
Michael Niedermayer Dec. 27, 2020, 6 p.m. UTC | #2
On Sun, Dec 27, 2020 at 06:58:00PM +0100, Marton Balint wrote:
> 
> 
> On Sun, 27 Dec 2020, Michael Niedermayer wrote:
> 
> > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> > ---
> > libavformat/mpegts.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> > index cc292ab929..efff5130de 100644
> > --- a/libavformat/mpegts.c
> > +++ b/libavformat/mpegts.c
> > @@ -3140,7 +3140,7 @@ static int mpegts_read_header(AVFormatContext *s)
> >         s->bit_rate  = TS_PACKET_SIZE * 8 * 27000000LL / ts->pcr_incr;
> >         st->codecpar->bit_rate = s->bit_rate;
> >         st->start_time      = ts->cur_pcr;
> > -        av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%d\n",
> > +        av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%"PRId64"\n",
> >                 st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr);
> 
> LGTM, thanks.

will apply

thx

[...]
diff mbox series

Patch

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index cc292ab929..efff5130de 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -3140,7 +3140,7 @@  static int mpegts_read_header(AVFormatContext *s)
         s->bit_rate  = TS_PACKET_SIZE * 8 * 27000000LL / ts->pcr_incr;
         st->codecpar->bit_rate = s->bit_rate;
         st->start_time      = ts->cur_pcr;
-        av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%d\n",
+        av_log(ts->stream, AV_LOG_TRACE, "start=%0.3f pcr=%0.3f incr=%"PRId64"\n",
                 st->start_time / 1000000.0, pcrs[0] / 27e6, ts->pcr_incr);
     }