Mercurial > mplayer.hg
diff 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 |
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.h Sun Oct 23 20:40:31 2011 +0000 +++ b/libmpdemux/mpeg_hdr.h Mon Oct 24 16:15:02 2011 +0000 @@ -47,8 +47,8 @@ float mpeg12_aspect_info(mp_mpeg_header_t *picture); int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer); void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer); -int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len); -int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, unsigned char * buf, int len); +int h264_parse_sps(mp_mpeg_header_t * picture, const unsigned char * buf, int len); +int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, const unsigned char * buf, int len); unsigned char mp_getbits(unsigned char *buffer, unsigned int from, unsigned char len);