Mercurial > mplayer.hg
annotate libvo/vo_dxr2.h @ 32752:5c39b0060c2c
Use mp_dir_join instead of sprintf.
This avoids a potential heap overflow and create a cleaner path: no double "//"
in the path for example, or even "\\/" on DOS-like systems.
author | cboesch |
---|---|
date | Tue, 01 Feb 2011 19:22:43 +0000 |
parents | 2821d9499621 |
children |
rev | line source |
---|---|
31389 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
19 #ifndef MPLAYER_VO_DXR2_H | |
20 #define MPLAYER_VO_DXR2_H | |
21 | |
22 #include "m_option.h" | |
23 | |
32076
8ffbdf8429d8
Move dxr2_fd extern variable declaration to vo_dxr2.h, where it belongs.
diego
parents:
31389
diff
changeset
|
24 extern int dxr2_fd; |
8ffbdf8429d8
Move dxr2_fd extern variable declaration to vo_dxr2.h, where it belongs.
diego
parents:
31389
diff
changeset
|
25 |
31389 | 26 extern const m_option_t dxr2_opts[]; |
27 | |
32700 | 28 /* exported for ao_dxr2.c */ |
29 int write_dxr2(const unsigned char *data, int len); | |
30 | |
31389 | 31 #endif /* MPLAYER_VO_DXR2_H */ |