comparison h263dec.c @ 1372:b52e62d17bbb libavcodec

last frame decoding fix
author michaelni
date Wed, 23 Jul 2003 09:58:02 +0000
parents 0fd38b711f06
children da0b3a50d209
comparison
equal deleted inserted replaced
1371:a0c0bee12abf 1372:b52e62d17bbb
399 printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]); 399 printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
400 #endif 400 #endif
401 s->flags= avctx->flags; 401 s->flags= avctx->flags;
402 402
403 *data_size = 0; 403 *data_size = 0;
404 404
405 /* no supplementary picture */ 405 /* no supplementary picture */
406 if (buf_size == 0) { 406 if (buf_size == 0) {
407 /* special case for last picture */
408 if (s->low_delay==0 && s->next_picture_ptr) {
409 *pict= *(AVFrame*)s->next_picture_ptr;
410 s->next_picture_ptr= NULL;
411
412 *data_size = sizeof(AVFrame);
413 }
414
407 return 0; 415 return 0;
408 } 416 }
409 417
410 if(s->flags&CODEC_FLAG_TRUNCATED){ 418 if(s->flags&CODEC_FLAG_TRUNCATED){
411 int next; 419 int next;