comparison mjpega_dump_header_bsf.c @ 8612:b20c590170cc libavcodec

remove ff_get_fourcc() and use AV_RL32() instead
author aurel
date Sat, 17 Jan 2009 12:21:01 +0000
parents 1408a8907da9
children 04423b2f6e0b
comparison
equal deleted inserted replaced
8611:a637db9f59b1 8612:b20c590170cc
71 bytestream_put_be32(&poutbufp, i + 46 + AV_RB16(buf + i + 2)); /* data off */ 71 bytestream_put_be32(&poutbufp, i + 46 + AV_RB16(buf + i + 2)); /* data off */
72 bytestream_put_buffer(&poutbufp, buf + 2, buf_size - 2); /* skip already written SOI */ 72 bytestream_put_buffer(&poutbufp, buf + 2, buf_size - 2); /* skip already written SOI */
73 *poutbuf_size = poutbufp - *poutbuf; 73 *poutbuf_size = poutbufp - *poutbuf;
74 return 1; 74 return 1;
75 case APP1: 75 case APP1:
76 if (i + 8 < buf_size && AV_RL32(buf + i + 8) == ff_get_fourcc("mjpg")) { 76 if (i + 8 < buf_size && AV_RL32(buf + i + 8) == AV_RL32("mjpg")) {
77 av_log(avctx, AV_LOG_ERROR, "bitstream already formatted\n"); 77 av_log(avctx, AV_LOG_ERROR, "bitstream already formatted\n");
78 memcpy(*poutbuf, buf, buf_size); 78 memcpy(*poutbuf, buf, buf_size);
79 *poutbuf_size = buf_size; 79 *poutbuf_size = buf_size;
80 return 1; 80 return 1;
81 } 81 }