summaryrefslogtreecommitdiff
path: root/libavformat/psxstr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-28 21:14:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-28 21:14:10 +0000
commite88b67de6ce3b9ea2f25a258c35fbde32fb6e502 (patch)
tree1a777e5f22aa6a283636a557fdc73b950047b68b /libavformat/psxstr.c
parent408f43cb36253ffc06827d105a5901ec83c15fae (diff)
Removing dead code, fixes CID4 RUN2.
Originally committed as revision 13507 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/psxstr.c')
-rw-r--r--libavformat/psxstr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index 3d4cac7f82..2ba805f84f 100644
--- a/libavformat/psxstr.c
+++ b/libavformat/psxstr.c
@@ -253,11 +253,9 @@ static int str_read_packet(AVFormatContext *s,
StrDemuxContext *str = s->priv_data;
unsigned char sector[RAW_CD_SECTOR_SIZE];
int channel;
- int packet_read = 0;
- int ret = 0;
AVPacket *pkt;
- while (!packet_read) {
+ while (1) {
if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
return AVERROR(EIO);
@@ -340,8 +338,6 @@ printf (" dropping other sector\n");
if (url_feof(pb))
return AVERROR(EIO);
}
-
- return ret;
}
static int str_read_close(AVFormatContext *s)