comparison vp8.c @ 11970:c7953ee47af4 libavcodec

vp8: warn and request sample if upscaling specified in header
author mru
date Sun, 27 Jun 2010 00:37:43 +0000
parents 56aba5a9761c
children 356b20a6566d
comparison
equal deleted inserted replaced
11969:3cd4cd0509cd 11970:c7953ee47af4
396 height = AV_RL16(buf+5) & 0x3fff; 396 height = AV_RL16(buf+5) & 0x3fff;
397 hscale = buf[4] >> 6; 397 hscale = buf[4] >> 6;
398 vscale = buf[6] >> 6; 398 vscale = buf[6] >> 6;
399 buf += 7; 399 buf += 7;
400 buf_size -= 7; 400 buf_size -= 7;
401
402 if (hscale || vscale)
403 av_log_missing_feature(s->avctx, "Upscaling", 1);
401 404
402 s->update_golden = s->update_altref = VP56_FRAME_CURRENT; 405 s->update_golden = s->update_altref = VP56_FRAME_CURRENT;
403 memcpy(s->prob->token , vp8_token_default_probs , sizeof(s->prob->token)); 406 memcpy(s->prob->token , vp8_token_default_probs , sizeof(s->prob->token));
404 memcpy(s->prob->pred16x16, vp8_pred16x16_prob_inter, sizeof(s->prob->pred16x16)); 407 memcpy(s->prob->pred16x16, vp8_pred16x16_prob_inter, sizeof(s->prob->pred16x16));
405 memcpy(s->prob->pred8x8c , vp8_pred8x8c_prob_inter , sizeof(s->prob->pred8x8c)); 408 memcpy(s->prob->pred8x8c , vp8_pred8x8c_prob_inter , sizeof(s->prob->pred8x8c));