Mercurial > libavcodec.hg
comparison mpeg12.c @ 771:d4cc92144266 libavcodec
handle direct rendering buffer allocation failure
author | michaelni |
---|---|
date | Sun, 27 Oct 2002 00:02:23 +0000 |
parents | cbe316f082bc |
children | dfaa1c45bd27 |
comparison
equal
deleted
inserted
replaced
770:d1770a34e4f6 | 771:d4cc92144266 |
---|---|
1579 s->last_dc[2] = s->last_dc[0]; | 1579 s->last_dc[2] = s->last_dc[0]; |
1580 memset(s->last_mv, 0, sizeof(s->last_mv)); | 1580 memset(s->last_mv, 0, sizeof(s->last_mv)); |
1581 /* start frame decoding */ | 1581 /* start frame decoding */ |
1582 if (s->first_slice) { | 1582 if (s->first_slice) { |
1583 s->first_slice = 0; | 1583 s->first_slice = 0; |
1584 MPV_frame_start(s, avctx); | 1584 if(MPV_frame_start(s, avctx) < 0) |
1585 return -1; | |
1585 } | 1586 } |
1586 | 1587 |
1587 init_get_bits(&s->gb, buf, buf_size); | 1588 init_get_bits(&s->gb, buf, buf_size); |
1588 | 1589 |
1589 s->qscale = get_qscale(s); | 1590 s->qscale = get_qscale(s); |