Browse Source

Removing dead code, fixes CID4 RUN2.

Originally committed as revision 13507 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
e88b67de6c
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      libavformat/psxstr.c

+ 1
- 5
libavformat/psxstr.c View File

@@ -253,11 +253,9 @@ static int str_read_packet(AVFormatContext *s,
StrDemuxContext *str = s->priv_data; StrDemuxContext *str = s->priv_data;
unsigned char sector[RAW_CD_SECTOR_SIZE]; unsigned char sector[RAW_CD_SECTOR_SIZE];
int channel; int channel;
int packet_read = 0;
int ret = 0;
AVPacket *pkt; AVPacket *pkt;


while (!packet_read) {
while (1) {


if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE) if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
return AVERROR(EIO); return AVERROR(EIO);
@@ -340,8 +338,6 @@ printf (" dropping other sector\n");
if (url_feof(pb)) if (url_feof(pb))
return AVERROR(EIO); return AVERROR(EIO);
} }

return ret;
} }


static int str_read_close(AVFormatContext *s) static int str_read_close(AVFormatContext *s)


Loading…
Cancel
Save