X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmmpeg2%2Fsrc%2Fmpeg2dec%2Fgetpic.c;h=c8e8594039ddc643005f98956703a645d3412f60;hb=98cf38e32be18dc2b7d3d1a13e45f60717b008bc;hp=8cfda605fe43742655375d09429b919a29bbfbd9;hpb=dd35c0318900832186867bbe852d56ab58bb3f70;p=gdcm.git diff --git a/src/gdcmmpeg2/src/mpeg2dec/getpic.c b/src/gdcmmpeg2/src/mpeg2dec/getpic.c index 8cfda605..c8e85940 100644 --- a/src/gdcmmpeg2/src/mpeg2dec/getpic.c +++ b/src/gdcmmpeg2/src/mpeg2dec/getpic.c @@ -27,8 +27,6 @@ * */ -#include - #include "config.h" #include "global.h" @@ -119,17 +117,16 @@ static void picture_data(framenum) int framenum; { int MBAmax; - int ret; /* number of macroblocks per picture */ MBAmax = mb_width*mb_height; if (picture_structure!=FRAME_PICTURE) - MBAmax>>=1; /* field picture has half as mnay macroblocks as frame */ + MBAmax>>=1; /* field picture has half as many macroblocks as frame */ for(;;) { - if((ret=slice(framenum, MBAmax))<0) + if(slice(framenum, MBAmax)<0) return; }