mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
cleanup: silence some clang warnings
Cosmetics: vo_mpegpes.c: Fix strange space placement Avoids clang warning that =- might have been intended as -=. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33797 b3059339-0415-0410-9bf9-f77b7e298cf2 vo_jpeg: Use "const char *" type for paths. Fixes a clang warning due to sign mismatch when calling open(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33799 b3059339-0415-0410-9bf9-f77b7e298cf2 mga_template.c: Remove pointless and in addition incorrect cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33800 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
684e54587e
commit
06d830687d
@ -438,7 +438,7 @@ static int mga_init(int width,int height,unsigned int format){
|
||||
|
||||
mp_msg(MSGT_VO,MSGL_V,"[MGA] Using %d buffers.\n",mga_vid_config.num_frames);
|
||||
|
||||
frames[0] = (char*)mmap(0,mga_vid_config.frame_size*mga_vid_config.num_frames,PROT_WRITE,MAP_SHARED,f,0);
|
||||
frames[0] = mmap(0,mga_vid_config.frame_size*mga_vid_config.num_frames,PROT_WRITE,MAP_SHARED,f,0);
|
||||
frames[1] = frames[0] + 1*mga_vid_config.frame_size;
|
||||
frames[2] = frames[0] + 2*mga_vid_config.frame_size;
|
||||
frames[3] = frames[0] + 3*mga_vid_config.frame_size;
|
||||
|
@ -104,7 +104,7 @@ static int framenum = 0;
|
||||
* returns, everything went well.
|
||||
*/
|
||||
|
||||
static void jpeg_mkdir(char *buf, int verbose) {
|
||||
static void jpeg_mkdir(const char *buf, int verbose) {
|
||||
struct stat stat_p;
|
||||
|
||||
#ifndef __MINGW32__
|
||||
@ -176,7 +176,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static uint32_t jpeg_write(uint8_t * name, uint8_t * buffer)
|
||||
static uint32_t jpeg_write(const char * name, uint8_t * buffer)
|
||||
{
|
||||
FILE *outfile;
|
||||
struct jpeg_compress_struct cinfo;
|
||||
|
@ -232,7 +232,7 @@ static void
|
||||
uninit(void)
|
||||
{
|
||||
if(ao_mpegpes_fd >= 0 && ao_mpegpes_fd != vo_mpegpes_fd) close(ao_mpegpes_fd);
|
||||
ao_mpegpes_fd =- 1;
|
||||
ao_mpegpes_fd = -1;
|
||||
if(vo_mpegpes_fd>=0){ close(vo_mpegpes_fd);vo_mpegpes_fd=-1;}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user