comparison flvdec.c @ 822:2614d3c1f415 libavformat

kill duplicated get/put_be24()
author michael
date Tue, 19 Jul 2005 14:41:08 +0000
parents 92dfb26763e4
children da1d5db0ce5c
comparison
equal deleted inserted replaced
821:92dfb26763e4 822:2614d3c1f415
15 * You should have received a copy of the GNU Lesser General Public 15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software 16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */ 18 */
19 #include "avformat.h" 19 #include "avformat.h"
20
21 unsigned int get_be24(ByteIOContext *s)
22 {
23 unsigned int val;
24 val = get_byte(s) << 16;
25 val |= get_byte(s) << 8;
26 val |= get_byte(s);
27 return val;
28 }
29 20
30 static int flv_probe(AVProbeData *p) 21 static int flv_probe(AVProbeData *p)
31 { 22 {
32 const uint8_t *d; 23 const uint8_t *d;
33 24