On Thu, Aug 22, 2019 at 10:47:17AM +0200, Marton Balint wrote:
>
>
> On Sun, 18 Aug 2019, Michael Niedermayer wrote:
>
> >On Sat, Aug 17, 2019 at 09:10:59PM +0200, Marton Balint wrote:
> >>Hi,
> >>
> >>As you might now avio_feof() returns true both in case of actual EOF and in
> >>case of IO err
On 8/17/2019 4:10 PM, Marton Balint wrote:
> Hi,
>
> As you might now avio_feof() returns true both in case of actual EOF and
> in case of IO errors.
>
> Some demuxers (matroska) have special handling for this exact reason, e.g.:
>
> if (avio_feof(pb)) {
> if (pb->error) {
> return p
On Sun, 18 Aug 2019, Michael Niedermayer wrote:
On Sat, Aug 17, 2019 at 09:10:59PM +0200, Marton Balint wrote:
Hi,
As you might now avio_feof() returns true both in case of actual EOF and in
case of IO errors.
Some demuxers (matroska) have special handling for this exact reason, e.g.:
if (
On Sat, Aug 17, 2019 at 09:10:59PM +0200, Marton Balint wrote:
> Hi,
>
> As you might now avio_feof() returns true both in case of actual EOF and in
> case of IO errors.
>
> Some demuxers (matroska) have special handling for this exact reason, e.g.:
>
> if (avio_feof(pb)) {
> if (pb->error)
Hi,
As you might now avio_feof() returns true both in case of actual EOF and
in case of IO errors.
Some demuxers (matroska) have special handling for this exact reason,
e.g.:
if (avio_feof(pb)) {
if (pb->error) {
return pb->error;
} else {
return AVERROR_EOF;
}
}