Mercurial > libavformat.hg
comparison rtp.c @ 2274:b21c2af60bc9 libavformat
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author | takis |
---|---|
date | Thu, 19 Jul 2007 15:23:32 +0000 |
parents | 3427d0c63a32 |
children | 18e94e5989d8 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
739 s->ssrc = 0; /* FIXME: was random(), what should this be? */ | 739 s->ssrc = 0; /* FIXME: was random(), what should this be? */ |
740 s->first_packet = 1; | 740 s->first_packet = 1; |
741 | 741 |
742 max_packet_size = url_fget_max_packet_size(&s1->pb); | 742 max_packet_size = url_fget_max_packet_size(&s1->pb); |
743 if (max_packet_size <= 12) | 743 if (max_packet_size <= 12) |
744 return AVERROR_IO; | 744 return AVERROR(EIO); |
745 s->max_payload_size = max_packet_size - 12; | 745 s->max_payload_size = max_packet_size - 12; |
746 | 746 |
747 switch(st->codec->codec_id) { | 747 switch(st->codec->codec_id) { |
748 case CODEC_ID_MP2: | 748 case CODEC_ID_MP2: |
749 case CODEC_ID_MP3: | 749 case CODEC_ID_MP3: |