Revision 59c673d5

View differences:

libavcodec/h263.c
4832 4832

  
4833 4833
    check_marker(gb, "before time_increment");
4834 4834
    
4835
    if(s->picture_number==0 && (show_bits(gb, s->time_increment_bits+1)&1)==0){
4835
    if(s->time_increment_bits==0){
4836 4836
        printf("hmm, seems the headers arnt complete, trying to guess time_increment_bits\n");
4837
        
4838 4837

  
4839 4838
        for(s->time_increment_bits=1 ;s->time_increment_bits<16; s->time_increment_bits++){
4840 4839
            if(show_bits(gb, s->time_increment_bits+1)&1) break;
4841 4840
        }
4841

  
4842 4842
        printf("my guess is %d bits ;)\n",s->time_increment_bits);
4843 4843
    }
4844 4844
    
......
5070 5070

  
5071 5071
        switch(startcode){
5072 5072
        case 0x120:
5073
            decode_vol_header(s, gb);
5073
            if(decode_vol_header(s, gb) < 0) 
5074
                return -1;
5074 5075
            break;
5075 5076
        case USER_DATA_STARTCODE:
5076 5077
            decode_user_data(s, gb);
libavcodec/mpegvideo.c
951 951
    assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
952 952

  
953 953
    /* mark&release old frames */
954
    if (s->pict_type != B_TYPE && s->last_picture_ptr) {
954
    if (s->pict_type != B_TYPE && s->last_picture_ptr && s->last_picture_ptr->data[0]) {
955 955
        avctx->release_buffer(avctx, (AVFrame*)s->last_picture_ptr);
956 956

  
957 957
        /* release forgotten pictures */
libavcodec/utils.c
220 220
    InternalBuffer *buf, *last, temp;
221 221

  
222 222
    assert(pic->type==FF_BUFFER_TYPE_INTERNAL);
223
    assert(s->internal_buffer_count);
223 224

  
224 225
    for(i=0; i<s->internal_buffer_count; i++){ //just 3-5 checks so is not worth to optimize
225 226
        buf= &((InternalBuffer*)s->internal_buffer)[i];

Also available in: Unified diff