Mercurial > mplayer.hg
comparison libmpdemux/mpeg_hdr.h @ 34158:562cd6805eac
Stop h264_parse_sps and mp_vc1_decode_sequence_header from corrupting the
provided buffer.
This caused problems with more strict H.264 decoders.
author | reimar |
---|---|
date | Mon, 24 Oct 2011 16:15:02 +0000 |
parents | 102ae81b5dc8 |
children | bf6f772e609d |
comparison
equal
deleted
inserted
replaced
34157:ab178e06077e | 34158:562cd6805eac |
---|---|
45 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer); | 45 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer); |
46 int mp_header_process_extension (mp_mpeg_header_t * picture, unsigned char * buffer); | 46 int mp_header_process_extension (mp_mpeg_header_t * picture, unsigned char * buffer); |
47 float mpeg12_aspect_info(mp_mpeg_header_t *picture); | 47 float mpeg12_aspect_info(mp_mpeg_header_t *picture); |
48 int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer); | 48 int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer); |
49 void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer); | 49 void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer); |
50 int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len); | 50 int h264_parse_sps(mp_mpeg_header_t * picture, const unsigned char * buf, int len); |
51 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, unsigned char * buf, int len); | 51 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, const unsigned char * buf, int len); |
52 | 52 |
53 unsigned char mp_getbits(unsigned char *buffer, unsigned int from, unsigned char len); | 53 unsigned char mp_getbits(unsigned char *buffer, unsigned int from, unsigned char len); |
54 | 54 |
55 #endif /* MPLAYER_MPEG_HDR_H */ | 55 #endif /* MPLAYER_MPEG_HDR_H */ |