Mercurial > libavcodec.hg
comparison mpegvideo.c @ 5129:0244bba24b43 libavcodec
misc typo fixes
author | diego |
---|---|
date | Tue, 12 Jun 2007 18:50:50 +0000 |
parents | 4dbe6578f811 |
children | a3b82ca01e68 |
comparison
equal
deleted
inserted
replaced
5128:d98460d07146 | 5129:0244bba24b43 |
---|---|
439 } | 439 } |
440 pic->qstride= s->mb_stride; | 440 pic->qstride= s->mb_stride; |
441 CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan)) | 441 CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan)) |
442 } | 442 } |
443 | 443 |
444 //it might be nicer if the application would keep track of these but it would require a API change | 444 /* It might be nicer if the application would keep track of these |
445 * but it would require an API change. */ | |
445 memmove(s->prev_pict_types+1, s->prev_pict_types, PREV_PICT_TYPES_BUFFER_SIZE-1); | 446 memmove(s->prev_pict_types+1, s->prev_pict_types, PREV_PICT_TYPES_BUFFER_SIZE-1); |
446 s->prev_pict_types[0]= s->pict_type; | 447 s->prev_pict_types[0]= s->pict_type; |
447 if(pic->age < PREV_PICT_TYPES_BUFFER_SIZE && s->prev_pict_types[pic->age] == B_TYPE) | 448 if(pic->age < PREV_PICT_TYPES_BUFFER_SIZE && s->prev_pict_types[pic->age] == B_TYPE) |
448 pic->age= INT_MAX; // skipped MBs in b frames are quite rare in mpeg1/2 and its a bit tricky to skip them anyway | 449 pic->age= INT_MAX; // Skipped MBs in B-frames are quite rare in MPEG-1/2 and it is a bit tricky to skip them anyway. |
449 | 450 |
450 return 0; | 451 return 0; |
451 fail: //for the CHECKED_ALLOCZ macro | 452 fail: //for the CHECKED_ALLOCZ macro |
452 return -1; | 453 return -1; |
453 } | 454 } |