Changeset 749

Show
Ignore:
Timestamp:
11/30/07 17:44:48 (9 months ago)
Author:
astrange
Message:

FFusionCodec.c: Fail harder in preflight.
bitstream_info.c: Fix typo in SPS parser.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/perian-1.1/FFusionCodec.c

    r744 r749  
    677677                // specifically PAFF + spatial prediction 
    678678                if (codecID == CODEC_ID_H264 && ffusionIsParsedVideoInterlaced(glob->begin.parser)) 
    679                         return -2
     679                        goto error
    680680                 
    681681                // some hooks into ffmpeg's buffer allocation to get frames in  
     
    694694            Codecprintf(glob->fileLog, "Error opening avcodec!\n"); 
    695695             
    696             return -2
     696            goto error
    697697        } 
    698698                 
     
    774774     
    775775    return noErr; 
     776         
     777error: 
     778        HLock(glob->pixelTypes); 
     779    pos = *((OSType **)glob->pixelTypes); 
     780        *pos = 0; 
     781        p->wantedDestinationPixelTypes = (OSType **)glob->pixelTypes; 
     782        HUnlock(glob->pixelTypes); 
     783         
     784        return -2; 
    776785} 
    777786 
  • branches/perian-1.1/bitstream_info.c

    r744 r749  
    354354                for(i=0; i<context->num_ref_frames_in_pic_order_cnt_cycle; i++) 
    355355                        context->sum_of_offset_for_ref_frames += get_se_golomb(gb); //offset_for_ref_frame[i] 
    356                get_ue_golomb(gb);      //num_ref_frames 
    357                get_bits1(gb);          //gaps_in_frame_num_value_allowed_flag 
    358                get_ue_golomb(gb);      //pic_width_in_mbs_minus1 
    359                get_ue_golomb(gb);      //pic_height_in_map_units_minus1 
    360                context->frame_mbs_only_flag = get_bits1(gb); 
    361         } 
     356        } 
     357        get_ue_golomb(gb);     //num_ref_frames 
     358        get_bits1(gb);         //gaps_in_frame_num_value_allowed_flag 
     359        get_ue_golomb(gb);     //pic_width_in_mbs_minus1 
     360        get_ue_golomb(gb);     //pic_height_in_map_units_minus1 
     361        context->frame_mbs_only_flag = get_bits1(gb); 
    362362} 
    363363