Browse Source

avcodec/screenpresso: return the packet size instead of 0

Most decoders return the amount of data used.
This is more consistent

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3
Michael Niedermayer 8 years ago
parent
commit
2eebcda10a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/screenpresso.c

+ 1
- 1
libavcodec/screenpresso.c View File

@@ -179,7 +179,7 @@ static int screenpresso_decode_frame(AVCodecContext *avctx, void *data,
}
*got_frame = 1;

return 0;
return avpkt->size;
}

AVCodec ff_screenpresso_decoder = {


Loading…
Cancel
Save