Mercurial > mplayer.hg
view av_opts.h @ 30812:4c3685b029f7
Fix QuickTime emulated OSErr type.
The OSErr type on Mac OS X is int16_t, not int32_t (see
http://developer.apple.com/mac/library/documentation/QuickTime/Reference/QTRef_DataTypes/Reference/reference.html).
The upper 16 bits will typically be something random (they're entirely
undefined). Change the type so it's right; a few places tried to compensate
for this by masking out the upper bits, but a few places also missed them,
which made for unpredictable behavior.
author | sesse |
---|---|
date | Sat, 06 Mar 2010 11:12:32 +0000 |
parents | 36321e2ba25a |
children |
line wrap: on
line source
/* * AVOption parsing helper * Copyright (C) 2008 Michael Niedermayer * * This file is part of MPlayer. * * MPlayer is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MPlayer is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with MPlayer; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef MPLAYER_AV_OPTS_H #define MPLAYER_AV_OPTS_H /** * Parses str and sets AVOptions in v accordingly. */ int parse_avopts(void *v, char *str); #endif /* MPLAYER_AV_OPTS_H */