pike.git / src / modules / DVB / psparser.c

version» Context lines:

pike.git/src/modules/DVB/psparser.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: psparser.c,v 1.6 2002/11/08 12:06:19 hop Exp $ + || $Id: psparser.c,v 1.7 2002/11/09 14:04:45 grubba Exp $   */      /*    * DVB module, PES extractor    *    * Creator: Honza Petrous <hop@unibase.cz>    *    */      #include "dvb.h"
pike.git/src/modules/DVB/psparser.c:30:    skipped++;    }    if(i+4 > count)    return -1;   #ifdef DVB_DEBUG    if(skipped)    printf("skipped: %d\n", skipped);   #endif       switch(cptr[3]) { -  case 0xC0 ... 0xDF: +  case 0xC0: case 0xC1: case 0xC2: case 0xC3: +  case 0xC4: case 0xC5: case 0xC6: case 0xC7: +  case 0xC8: case 0xC9: case 0xCA: case 0xCB: +  case 0xCC: case 0xCD: case 0xCE: case 0xCF: +  case 0xD0: case 0xD1: case 0xD2: case 0xD3: +  case 0xD4: case 0xD5: case 0xD6: case 0xD7: +  case 0xD8: case 0xD9: case 0xDA: case 0xDB: +  case 0xDC: case 0xDD: case 0xDE: case 0xDF:    extf = 1;    pkt->ptype = DVB_PES_TYPE_AUDIO;    break; -  case 0xE0 ... 0xEF: +  case 0xE0: case 0xE1: case 0xE2: case 0xE3: +  case 0xE4: case 0xE5: case 0xE6: case 0xE7: +  case 0xE8: case 0xE9: case 0xEA: case 0xEB: +  case 0xEC: case 0xED: case 0xEE: case 0xEF:    extf = 1;    pkt->ptype = DVB_PES_TYPE_VIDEO;    break;    case 0xBD:    extf = 1;    pkt->ptype = DVB_PES_TYPE_PRIVATE;    break;    default:    pkt->ptype = DVB_PES_TYPE_NOPES;    extf = 0;