X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Foggparsecelt.c;h=7084e768a393ebad83fe12276835d7d665262265;hb=48aef27f5232794e70ecef0d347b9f65e27a9bad;hp=0deccc2d08ac5de6426002a2842ea47abe7d7873;hpb=7751e4693dd10ec98c20fbd9887233b575034272;p=ffmpeg diff --git a/libavformat/oggparsecelt.c b/libavformat/oggparsecelt.c index 0deccc2d08a..7084e768a39 100644 --- a/libavformat/oggparsecelt.c +++ b/libavformat/oggparsecelt.c @@ -42,7 +42,7 @@ static int celt_header(AVFormatContext *s, int idx) !memcmp(p, ff_celt_codec.magic, ff_celt_codec.magicsize)) { /* Main header */ - uint32_t version, sample_rate, nb_channels, frame_size; + uint32_t version, sample_rate, nb_channels; uint32_t overlap, extra_headers; uint8_t *extradata; @@ -58,7 +58,6 @@ static int celt_header(AVFormatContext *s, int idx) /* unused header size field skipped */ sample_rate = AV_RL32(p + 36); nb_channels = AV_RL32(p + 40); - frame_size = AV_RL32(p + 44); overlap = AV_RL32(p + 48); /* unused bytes per packet field skipped */ extra_headers = AV_RL32(p + 56); @@ -68,7 +67,6 @@ static int celt_header(AVFormatContext *s, int idx) st->codec->codec_id = AV_CODEC_ID_CELT; st->codec->sample_rate = sample_rate; st->codec->channels = nb_channels; - st->codec->frame_size = frame_size; st->codec->extradata = extradata; st->codec->extradata_size = 2 * sizeof(uint32_t); if (sample_rate) @@ -81,7 +79,7 @@ static int celt_header(AVFormatContext *s, int idx) } else if (priv && priv->extra_headers_left) { /* Extra headers (vorbiscomment) */ - ff_vorbis_comment(s, &st->metadata, p, os->psize); + ff_vorbis_stream_comment(s, st, p, os->psize); priv->extra_headers_left--; return 1; } else {