Commit 2ef241c0 authored by Stefano Sabatini's avatar Stefano Sabatini

oggdec: use av_dlog()

Simplify.
parent 6b4c0be5
...@@ -317,9 +317,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, ...@@ -317,9 +317,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;
#if 0 av_dlog(s, "ogg_packet: curidx=%i\n", ogg->curidx);
av_log (s, AV_LOG_DEBUG, "ogg_packet: curidx=%i\n", ogg->curidx);
#endif
do{ do{
idx = ogg->curidx; idx = ogg->curidx;
...@@ -332,11 +330,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, ...@@ -332,11 +330,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
os = ogg->streams + idx; os = ogg->streams + idx;
#if 0 av_dlog(s, "ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d\n",
av_log (s, AV_LOG_DEBUG,
"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);
#endif
if (!os->codec){ if (!os->codec){
if (os->header < 0){ if (os->header < 0){
...@@ -369,11 +364,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, ...@@ -369,11 +364,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
} }
}while (!complete); }while (!complete);
#if 0 av_dlog(s, "ogg_packet: idx %i, frame size %i, start %i\n",
av_log (s, AV_LOG_DEBUG, idx, os->psize, os->pstart);
"ogg_packet: idx %i, frame size %i, start %i\n",
idx, os->psize, os->pstart);
#endif
if (os->granule == -1) if (os->granule == -1)
av_log(s, AV_LOG_WARNING, "Page at %"PRId64" is missing granule\n", os->page_pos); av_log(s, AV_LOG_WARNING, "Page at %"PRId64" is missing granule\n", os->page_pos);
...@@ -452,9 +444,7 @@ static int ogg_get_headers(AVFormatContext *s) ...@@ -452,9 +444,7 @@ static int ogg_get_headers(AVFormatContext *s)
return ret; return ret;
}while (!ogg->headers); }while (!ogg->headers);
#if 0 av_dlog(s, "found headers\n");
av_log (s, AV_LOG_DEBUG, "found headers\n");
#endif
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment