lavf/segment: rename segment private context from "c" to "seg" in segment_start()
Consistent with the rest of the file, less confusing.
This commit is contained in:
parent
a9a7e215e5
commit
c1abfbc47c
@ -47,15 +47,15 @@ typedef struct {
|
|||||||
|
|
||||||
static int segment_start(AVFormatContext *s)
|
static int segment_start(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
SegmentContext *c = s->priv_data;
|
SegmentContext *seg = s->priv_data;
|
||||||
AVFormatContext *oc = c->avf;
|
AVFormatContext *oc = seg->avf;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
if (c->wrap)
|
if (seg->wrap)
|
||||||
c->number %= c->wrap;
|
seg->number %= seg->wrap;
|
||||||
|
|
||||||
if (av_get_frame_filename(oc->filename, sizeof(oc->filename),
|
if (av_get_frame_filename(oc->filename, sizeof(oc->filename),
|
||||||
s->filename, c->number++) < 0)
|
s->filename, seg->number++) < 0)
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
if ((err = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
|
if ((err = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user