[FFmpeg-cvslog] avienc: Update 2 debug statements to match the current code.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon May 9 20:36:32 CEST 2011



On 9 May 2011, at 19:58, git at videolan.org (Michael Niedermayer) wrote:

> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May  9 17:49:25 2011 +0200| [282e8d4b4fba0c54d4cc6dbd54d271a514370b08] | committer: Michael Niedermayer
> 
> avienc: Update 2 debug statements to match the current code.
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> 
>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=282e8d4b4fba0c54d4cc6dbd54d271a514370b08
> ---
> 
> libavformat/avienc.c |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/avienc.c b/libavformat/avienc.c
> index ff74c3b..9f488d9 100644
> --- a/libavformat/avienc.c
> +++ b/libavformat/avienc.c
> @@ -518,7 +518,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
>     AVCodecContext *enc= s->streams[stream_index]->codec;
>     int size= pkt->size;
> 
> -//    av_log(s, AV_LOG_DEBUG, "%"PRId64" %d %d\n", pkt->dts, avi->packet_count[stream_index], stream_index);
> +//    av_log(s, AV_LOG_DEBUG, "%"PRId64" %d %d\n", pkt->dts, avist->packet_count, stream_index);
>     while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avist->packet_count){
>         AVPacket empty_packet;
> 
> @@ -527,7 +527,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
>         empty_packet.data= NULL;
>         empty_packet.stream_index= stream_index;
>         avi_write_packet(s, &empty_packet);
> -//        av_log(s, AV_LOG_DEBUG, "dup %"PRId64" %d\n", pkt->dts, avi->packet_count[stream_index]);
> +//        av_log(s, AV_LOG_DEBUG, "dup %"PRId64" %d\n", pkt->dts, avist->packet_count);


Hm, how about using av_dlog?
And is there any interest in making av_dlog check syntax even if disabled?
I.e. define it to something along the lines of "if (0) av_log(...)"


More information about the ffmpeg-cvslog mailing list