X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fdirac.c;h=f621090ec24dd365a62dd516f412f8c584550880;hb=ab1e2b524cb535d8c2ef1a7914f359d679d83136;hp=cb5d8b543613f7651947a4d0f29e92389486562e;hpb=13ae40b0efc4f1b1ce205d9a057537047fcab3f4;p=vlc diff --git a/modules/codec/dirac.c b/modules/codec/dirac.c index cb5d8b5436..f621090ec2 100644 --- a/modules/codec/dirac.c +++ b/modules/codec/dirac.c @@ -29,7 +29,7 @@ # include "config.h" #endif -#include +#include #include #include #include @@ -62,7 +62,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict ); #define ENC_CFG_PREFIX "sout-dirac-" -static const char *ppsz_enc_options[] = { +static const char *const ppsz_enc_options[] = { "quality", NULL }; @@ -275,16 +275,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) FreeFrameBuffer( p_sys->p_dirac ); break; - case STATE_PICTURE_START: - msg_Dbg( p_dec, "PICTURE_START: frame_type=%i frame_num=%d", - p_sys->p_dirac->frame_params.ftype, - p_sys->p_dirac->frame_params.fnum ); - break; - case STATE_PICTURE_AVAIL: - msg_Dbg( p_dec, "PICTURE_AVAI : frame_type=%i frame_num=%d", - p_sys->p_dirac->frame_params.ftype, - p_sys->p_dirac->frame_params.fnum ); + msg_Dbg( p_dec, "PICTURE_AVAIL : frame_num=%d", + p_sys->p_dirac->frame_num ); /* Picture available for display */ p_pic = GetNewPicture( p_dec ); @@ -476,7 +469,7 @@ static void CloseEncoder( vlc_object_t *p_this ) encoder_t *p_enc = (encoder_t *)p_this; encoder_sys_t *p_sys = p_enc->p_sys; - msg_Dbg( p_enc, "resulting bit-rate: %i bits/sec", + msg_Dbg( p_enc, "resulting bit-rate: %lld bits/sec", p_sys->p_dirac->enc_seqstats.bit_rate ); /* Free the encoder resources */