On Thu, Sep 08, 2016 at 04:10:10PM +0200, Vittorio Giovara wrote:
> On Thu, Sep 8, 2016 at 2:34 PM, Diego Biurrun <[email protected]> wrote:
> > diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
> > index e02f349..d68f708 100644
> > --- a/libavcodec/dvenc.c
> > +++ b/libavcodec/dvenc.c
> > @@ -234,8 +234,8 @@ static const int dv_weight_248[64] = {
> >  };
> >
> >  static av_always_inline int dv_init_enc_block(EncBlockInfo *bi, uint8_t 
> > *data,
> > -                                              int linesize, DVVideoContext 
> > *s,
> > -                                              int bias)
> > +                                              ptrdiff_t linesize,
> > +                                              DVVideoContext *s, int bias)
> >  {
> >      const int *weight;
> >      const uint8_t *zigzag_scan;
> > @@ -413,7 +413,8 @@ static int dv_encode_video_segment(AVCodecContext 
> > *avctx, void *arg)
> >      DVVideoContext *s = avctx->priv_data;
> >      DVwork_chunk *work_chunk = arg;
> >      int mb_index, i, j;
> > -    int mb_x, mb_y, c_offset, linesize, y_stride;
> > +    int mb_x, mb_y, c_offset;
> > +    ptrdiff_t linesize, y_stride;
> >      uint8_t *y_ptr;
> >      uint8_t *dif;
> >      LOCAL_ALIGNED_8(uint8_t, scratch, [128]);
> 
> should these two linesize vars be renamed to stride too?

dv uses linesize everywhere, I'll keep it that way.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to