comparison svq1.c @ 561:2d5ae7516af0 libavcodec

hurry up support returning buf_size insetad of 0
author michaelni
date Tue, 16 Jul 2002 10:29:07 +0000
parents 81227ab62678
children ba17f7dbe745
comparison
equal deleted inserted replaced
560:81227ab62678 561:2d5ae7516af0
2575 #ifdef DEBUG_SVQ1 2575 #ifdef DEBUG_SVQ1
2576 printf("Error in svq1_decode_frame_header %i\n",result); 2576 printf("Error in svq1_decode_frame_header %i\n",result);
2577 #endif 2577 #endif
2578 return result; 2578 return result;
2579 } 2579 }
2580
2581 if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size;
2580 2582
2581 /* decode y, u and v components */ 2583 /* decode y, u and v components */
2582 for (i=0; i < 3; i++) { 2584 for (i=0; i < 3; i++) {
2583 int linesize; 2585 int linesize;
2584 if (i == 0) { 2586 if (i == 0) {
2643 pict->data[i] = s->current_picture[i]; 2645 pict->data[i] = s->current_picture[i];
2644 pict->linesize[i] = linesize; 2646 pict->linesize[i] = linesize;
2645 } 2647 }
2646 2648
2647 *data_size=sizeof(AVPicture); 2649 *data_size=sizeof(AVPicture);
2648 return 0; 2650 return buf_size;
2649 } 2651 }
2650 2652
2651 static int svq1_decode_init(AVCodecContext *avctx) 2653 static int svq1_decode_init(AVCodecContext *avctx)
2652 { 2654 {
2653 MpegEncContext *s = avctx->priv_data; 2655 MpegEncContext *s = avctx->priv_data;