comparison libmpeg2/decode.c @ 31288:020ae1402728

Remove stale leftovers from MPlayer-specific buffer handling in libmpeg2.
author diego
date Wed, 09 Jun 2010 14:35:31 +0000
parents da2271c341ee
children 32a214ee10e5
comparison
equal deleted inserted replaced
31287:168e89b341b1 31288:020ae1402728
17 * GNU General Public License for more details. 17 * GNU General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software 20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 *
23 * Modified for use with MPlayer, see libmpeg2_changes.diff for the exact changes.
24 * detailed changelog at http://svn.mplayerhq.hu/mplayer/trunk/
25 * $Id$
26 */ 22 */
27 23
28 #include "config.h" 24 #include "config.h"
29 25
30 #include <string.h> /* memcmp/memset, try to remove */ 26 #include <string.h> /* memcmp/memset, try to remove */
347 } 343 }
348 fbuf->buf[0] = buf[0]; 344 fbuf->buf[0] = buf[0];
349 fbuf->buf[1] = buf[1]; 345 fbuf->buf[1] = buf[1];
350 fbuf->buf[2] = buf[2]; 346 fbuf->buf[2] = buf[2];
351 fbuf->id = id; 347 fbuf->id = id;
352 // HACK! FIXME! At first I frame, copy pointers to prediction frame too!
353 if (mpeg2dec->custom_fbuf && !mpeg2dec->fbuf[1]->buf[0]){
354 mpeg2dec->fbuf[1]->buf[0]=buf[0];
355 mpeg2dec->fbuf[1]->buf[1]=buf[1];
356 mpeg2dec->fbuf[1]->buf[2]=buf[2];
357 mpeg2dec->fbuf[1]->id=NULL;
358 }
359 // printf("libmpeg2: FBUF 0:%p 1:%p 2:%p\n",
360 // mpeg2dec->fbuf[0]->buf[0],mpeg2dec->fbuf[1]->buf[0],mpeg2dec->fbuf[2]->buf[0]);
361 } 348 }
362 349
363 void mpeg2_custom_fbuf (mpeg2dec_t * mpeg2dec, int custom_fbuf) 350 void mpeg2_custom_fbuf (mpeg2dec_t * mpeg2dec, int custom_fbuf)
364 { 351 {
365 mpeg2dec->custom_fbuf = custom_fbuf; 352 mpeg2dec->custom_fbuf = custom_fbuf;