|
|
@ -310,7 +310,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, |
|
|
|
int complete = 0; |
|
|
|
int complete = 0; |
|
|
|
int segp = 0, psize = 0; |
|
|
|
int segp = 0, psize = 0; |
|
|
|
|
|
|
|
|
|
|
|
av_dlog(s, AV_LOG_DEBUG, "ogg_packet: curidx=%i\n", ogg->curidx); |
|
|
|
av_dlog(s, "ogg_packet: curidx=%i\n", ogg->curidx); |
|
|
|
|
|
|
|
|
|
|
|
do{ |
|
|
|
do{ |
|
|
|
idx = ogg->curidx; |
|
|
|
idx = ogg->curidx; |
|
|
@ -322,8 +322,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, |
|
|
|
|
|
|
|
|
|
|
|
os = ogg->streams + idx; |
|
|
|
os = ogg->streams + idx; |
|
|
|
|
|
|
|
|
|
|
|
av_dlog(s, AV_LOG_DEBUG, |
|
|
|
av_dlog(s, "ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d\n", |
|
|
|
"ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d\n", |
|
|
|
|
|
|
|
idx, os->pstart, os->psize, os->segp, os->nsegs); |
|
|
|
idx, os->pstart, os->psize, os->segp, os->nsegs); |
|
|
|
|
|
|
|
|
|
|
|
if (!os->codec){ |
|
|
|
if (!os->codec){ |
|
|
@ -356,8 +355,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, |
|
|
|
} |
|
|
|
} |
|
|
|
}while (!complete); |
|
|
|
}while (!complete); |
|
|
|
|
|
|
|
|
|
|
|
av_dlog(s, AV_LOG_DEBUG, |
|
|
|
av_dlog(s, "ogg_packet: idx %i, frame size %i, start %i\n", |
|
|
|
"ogg_packet: idx %i, frame size %i, start %i\n", |
|
|
|
|
|
|
|
idx, os->psize, os->pstart); |
|
|
|
idx, os->psize, os->pstart); |
|
|
|
|
|
|
|
|
|
|
|
if (os->granule == -1) |
|
|
|
if (os->granule == -1) |
|
|
@ -438,7 +436,7 @@ static int ogg_get_headers(AVFormatContext *s) |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
}while (!ogg->headers); |
|
|
|
}while (!ogg->headers); |
|
|
|
|
|
|
|
|
|
|
|
av_dlog(s, AV_LOG_DEBUG, "found headers\n"); |
|
|
|
av_dlog(s, "found headers\n"); |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|