comparison psxstr.c @ 3390:771ab1d4fd6e libavformat

Removing dead code, fixes CID4 RUN2.
author michael
date Wed, 28 May 2008 21:14:10 +0000
parents d52c718e83f9
children 7a0230981402
comparison
equal deleted inserted replaced
3389:788591625459 3390:771ab1d4fd6e
251 { 251 {
252 ByteIOContext *pb = s->pb; 252 ByteIOContext *pb = s->pb;
253 StrDemuxContext *str = s->priv_data; 253 StrDemuxContext *str = s->priv_data;
254 unsigned char sector[RAW_CD_SECTOR_SIZE]; 254 unsigned char sector[RAW_CD_SECTOR_SIZE];
255 int channel; 255 int channel;
256 int packet_read = 0;
257 int ret = 0;
258 AVPacket *pkt; 256 AVPacket *pkt;
259 257
260 while (!packet_read) { 258 while (1) {
261 259
262 if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE) 260 if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
263 return AVERROR(EIO); 261 return AVERROR(EIO);
264 262
265 channel = sector[0x11]; 263 channel = sector[0x11];
338 } 336 }
339 337
340 if (url_feof(pb)) 338 if (url_feof(pb))
341 return AVERROR(EIO); 339 return AVERROR(EIO);
342 } 340 }
343
344 return ret;
345 } 341 }
346 342
347 static int str_read_close(AVFormatContext *s) 343 static int str_read_close(AVFormatContext *s)
348 { 344 {
349 StrDemuxContext *str = s->priv_data; 345 StrDemuxContext *str = s->priv_data;