mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
const
Originally committed as revision 11745 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0e03ed2eed
commit
6ea28fc5ea
@ -42,12 +42,13 @@ static int sunrast_init(AVCodecContext *avctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
|
static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
int *data_size, uint8_t *buf, int buf_size) {
|
int *data_size, const uint8_t *buf, int buf_size) {
|
||||||
SUNRASTContext * const s = avctx->priv_data;
|
SUNRASTContext * const s = avctx->priv_data;
|
||||||
AVFrame *picture = data;
|
AVFrame *picture = data;
|
||||||
AVFrame * const p = &s->picture;
|
AVFrame * const p = &s->picture;
|
||||||
unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen;
|
unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen;
|
||||||
uint8_t *ptr, *bufstart = buf;
|
uint8_t *ptr;
|
||||||
|
const uint8_t *bufstart = buf;
|
||||||
|
|
||||||
if (AV_RB32(buf) != 0x59a66a95) {
|
if (AV_RB32(buf) != 0x59a66a95) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n");
|
av_log(avctx, AV_LOG_ERROR, "this is not sunras encoded data\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user