Commit 277ddf12 authored by Clément Bœsch's avatar Clément Bœsch

lavf/oggdec: rename str to sid.

"str" is misleading here (it's often used for string). "sid" makes more
sense to identify a stream id.
parent e1ca1dd7
...@@ -206,7 +206,7 @@ static int ogg_new_buf(struct ogg *ogg, int idx) ...@@ -206,7 +206,7 @@ static int ogg_new_buf(struct ogg *ogg, int idx)
return 0; return 0;
} }
static int ogg_read_page(AVFormatContext *s, int *str) static int ogg_read_page(AVFormatContext *s, int *sid)
{ {
AVIOContext *bc = s->pb; AVIOContext *bc = s->pb;
struct ogg *ogg = s->priv_data; struct ogg *ogg = s->priv_data;
...@@ -331,20 +331,20 @@ static int ogg_read_page(AVFormatContext *s, int *str) ...@@ -331,20 +331,20 @@ static int ogg_read_page(AVFormatContext *s, int *str)
os->flags = flags; os->flags = flags;
memset(os->buf + os->bufpos, 0, FF_INPUT_BUFFER_PADDING_SIZE); memset(os->buf + os->bufpos, 0, FF_INPUT_BUFFER_PADDING_SIZE);
if (str) if (sid)
*str = idx; *sid = idx;
return 0; return 0;
} }
/** /**
* @brief find the next Ogg packet * @brief find the next Ogg packet
* @param *str is set to the stream for the packet or -1 if there is * @param *sid is set to the stream for the packet or -1 if there is
* no matching stream, in that case assume all other return * no matching stream, in that case assume all other return
* values to be uninitialized. * values to be uninitialized.
* @return negative value on error or EOF. * @return negative value on error or EOF.
*/ */
static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, static int ogg_packet(AVFormatContext *s, int *sid, int *dstart, int *dsize,
int64_t *fpos) int64_t *fpos)
{ {
struct ogg *ogg = s->priv_data; struct ogg *ogg = s->priv_data;
...@@ -354,8 +354,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, ...@@ -354,8 +354,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
int segp = 0, psize = 0; int segp = 0, psize = 0;
av_dlog(s, "ogg_packet: curidx=%i\n", ogg->curidx); av_dlog(s, "ogg_packet: curidx=%i\n", ogg->curidx);
if (str) if (sid)
*str = -1; *sid = -1;
do{ do{
idx = ogg->curidx; idx = ogg->curidx;
...@@ -445,8 +445,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize, ...@@ -445,8 +445,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
os->pduration = 0; os->pduration = 0;
if (os->codec && os->codec->packet) if (os->codec && os->codec->packet)
os->codec->packet (s, idx); os->codec->packet (s, idx);
if (str) if (sid)
*str = idx; *sid = idx;
if (dstart) if (dstart)
*dstart = os->pstart; *dstart = os->pstart;
if (dsize) if (dsize)
......
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