Revision 96b6ace2 libavcodec/h264.c

View differences:

libavcodec/h264.c
7279 7279
    int buf_index=0;
7280 7280
#if 0
7281 7281
    int i;
7282
    for(i=0; i<32; i++){
7283
        printf("%X ", buf[i]);
7282
    for(i=0; i<50; i++){
7283
        av_log(NULL, AV_LOG_ERROR,"%02X ", buf[i]);
7284 7284
    }
7285 7285
#endif
7286 7286
    h->slice_num = 0;
......
7484 7484
        p += 6;
7485 7485
        for (i = 0; i < cnt; i++) {
7486 7486
            nalsize = BE_16(p) + 2;
7487
            if(decode_nal_units(h, p, nalsize) != nalsize) {
7487
            if(decode_nal_units(h, p, nalsize) < 0) {
7488 7488
                av_log(avctx, AV_LOG_ERROR, "Decoding sps %d from avcC failed\n", i);
7489 7489
                return -1;
7490 7490
            }

Also available in: Unified diff