ports/multimedia/mplayer/files/patch-libavcodec-h264.c
Ion-Mihai Tetcu 015180ee46 - fix build of mplayer with h264 and polyaudio, when an external reference was
generated to: last_coeff_flag_offset in the polyaudio module, that is static
in the h264.
- security fix provided by the mplayer development team for a possible remote
buffer overflow in rtsp streams
- Correct library dependence and OPTIONS for samba support

PR:		ports/107217
Submitted by:	Sergio Lenzi [1], Thomas E. Zander (maintainer) [2]
Approved by:	maintainer
Security:	http://www.vuxml.org/freebsd/b2ff68b2-9f29-11db-a4e4-0211d87675b7.hml
2007-01-08 16:02:14 +00:00

11 lines
459 B
C

--- libavcodec/h264.c.orig Thu Dec 21 14:57:54 2006
+++ libavcodec/h264.c Thu Dec 21 15:00:14 2006
@@ -6034,7 +6034,7 @@
return ctx + 4 * cat;
}
-static const __attribute((used)) uint8_t last_coeff_flag_offset_8x8[63] = {
+const __attribute((used)) uint8_t last_coeff_flag_offset_8x8[63] = {
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,