Mercurial > libavcodec.hg
comparison sp5xdec.c @ 5089:bff60ecc02f9 libavcodec
Use AV_xx throughout libavcodec
author | ramiro |
---|---|
date | Sat, 02 Jun 2007 01:41:07 +0000 |
parents | 259b58518ecc |
children | 810067f2c33d |
comparison
equal
deleted
inserted
replaced
5088:8e206208db1f | 5089:bff60ecc02f9 |
---|---|
63 | 63 |
64 memcpy(recoded+j, &sp5x_data_dht[0], sizeof(sp5x_data_dht)); | 64 memcpy(recoded+j, &sp5x_data_dht[0], sizeof(sp5x_data_dht)); |
65 j += sizeof(sp5x_data_dht); | 65 j += sizeof(sp5x_data_dht); |
66 | 66 |
67 memcpy(recoded+j, &sp5x_data_sof[0], sizeof(sp5x_data_sof)); | 67 memcpy(recoded+j, &sp5x_data_sof[0], sizeof(sp5x_data_sof)); |
68 recoded[j+5] = (avctx->coded_height >> 8) & 0xFF; | 68 AV_WB16(recoded+j+5, avctx->coded_height); |
69 recoded[j+6] = avctx->coded_height & 0xFF; | 69 AV_WB16(recoded+j+7, avctx->coded_width); |
70 recoded[j+7] = (avctx->coded_width >> 8) & 0xFF; | |
71 recoded[j+8] = avctx->coded_width & 0xFF; | |
72 j += sizeof(sp5x_data_sof); | 70 j += sizeof(sp5x_data_sof); |
73 | 71 |
74 memcpy(recoded+j, &sp5x_data_sos[0], sizeof(sp5x_data_sos)); | 72 memcpy(recoded+j, &sp5x_data_sos[0], sizeof(sp5x_data_sos)); |
75 j += sizeof(sp5x_data_sos); | 73 j += sizeof(sp5x_data_sos); |
76 | 74 |