diff options
Diffstat (limited to 'libmpcodecs/vf_uspp.c')
-rw-r--r-- | libmpcodecs/vf_uspp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vf_uspp.c b/libmpcodecs/vf_uspp.c index 6feb8eb468..85383716b5 100644 --- a/libmpcodecs/vf_uspp.c +++ b/libmpcodecs/vf_uspp.c @@ -175,12 +175,12 @@ static void filter(struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int ds for(i=0; i<count; i++){ const int x1= offset[i+count-1][0]; const int y1= offset[i+count-1][1]; - int offset, out_size; + int offset; p->frame->data[0]= p->src[0] + x1 + y1 * p->frame->linesize[0]; p->frame->data[1]= p->src[1] + x1/2 + y1/2 * p->frame->linesize[1]; p->frame->data[2]= p->src[2] + x1/2 + y1/2 * p->frame->linesize[2]; - out_size = avcodec_encode_video(p->avctx_enc[i], p->outbuf, p->outbuf_size, p->frame); + avcodec_encode_video(p->avctx_enc[i], p->outbuf, p->outbuf_size, p->frame); p->frame_dec = p->avctx_enc[i]->coded_frame; offset= (BLOCK-x1) + (BLOCK-y1)*p->frame_dec->linesize[0]; |