Ticket #364: mplayer.silent-mp4.patch

File mplayer.silent-mp4.patch, 952 bytes (added by richardv@…, 14 years ago)

Proposed fix

  • libmpdemux/demux_mov.c

    old new  
    196196    }
    197197
    198198    // workaround for fixed-size video frames (dv and uncompressed)
    199     if(!trak->samples_size && trak->type!=MOV_TRAK_AUDIO){
     199    // and fixed-size chunks of framed audio codec
     200    if(!trak->samples_size && (trak->type!=MOV_TRAK_AUDIO || trak->samplesize != 1)){
    200201        trak->samples_size=s;
    201202        trak->samples=malloc(sizeof(mov_sample_t)*s);
    202203        for(i=0;i<s;i++)
     
    18411842    pts=(float)(trak->chunks[trak->pos].sample*trak->duration)/(float)trak->timescale;
    18421843    if(trak->samplesize!=1)
    18431844    {
     1845        /* this should now be unreachable, as we always build an index
     1846           when samplesize != 1 */
    18441847        mp_msg(MSGT_DEMUX, MSGL_DBG2, "WARNING! Samplesize(%d) != 1\n",
    18451848            trak->samplesize);
    18461849        x=trak->chunks[trak->pos].size*trak->samplesize;