X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmmpeg2%2Fsrc%2Fmpeg2dec%2Fsubspic.c;h=30ae35e9fa0a0d93018c175537b03b54e69bac57;hb=8709cb41d6f450b58bd94eee2f00a8e5dea29581;hp=70f68b77672a4ad6f26077b23460b662c50ec7f3;hpb=dd35c0318900832186867bbe852d56ab58bb3f70;p=gdcm.git diff --git a/src/gdcmmpeg2/src/mpeg2dec/subspic.c b/src/gdcmmpeg2/src/mpeg2dec/subspic.c index 70f68b77..30ae35e9 100644 --- a/src/gdcmmpeg2/src/mpeg2dec/subspic.c +++ b/src/gdcmmpeg2/src/mpeg2dec/subspic.c @@ -31,7 +31,6 @@ #include #include #include -#include // for read #include "config.h" #include "global.h" @@ -261,6 +260,7 @@ int Height; return(-1); } + abort(); Bytes_Read = read(Infile, Frame, Size); if(Bytes_Read!=Size) @@ -289,6 +289,7 @@ int framenum; FILE *fd; int line; int size, offset; + abort(); if (!(fd = fopen(filename,"rb"))) @@ -321,7 +322,7 @@ int framenum; /* seek to location in big file where desired frame begins */ /* note: this offset cannot exceed a few billion bytes due to the */ /* obvious limitations of 32-bit integers */ - fseek(fd, offset, 0); + fseek(fd, offset, SEEK_SET); /* Y */ for (line=0; line