summaryrefslogtreecommitdiff
path: root/libavformat/gsmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/gsmdec.c')
-rw-r--r--libavformat/gsmdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c
index f9ecbafcda..a51822ad23 100644
--- a/libavformat/gsmdec.c
+++ b/libavformat/gsmdec.c
@@ -48,7 +48,6 @@ static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt)
av_free_packet(pkt);
return ret < 0 ? ret : AVERROR(EIO);
}
- pkt->size = ret;
pkt->duration = 1;
pkt->pts = pkt->pos / GSM_BLOCK_SIZE;
@@ -81,7 +80,7 @@ static const AVOption options[] = {
{ NULL },
};
-static const AVClass class = {
+static const AVClass gsm_class = {
.class_name = "gsm demuxer",
.item_name = av_default_item_name,
.option = options,
@@ -97,5 +96,5 @@ AVInputFormat ff_gsm_demuxer = {
.flags = AVFMT_GENERIC_INDEX,
.extensions = "gsm",
.raw_codec_id = AV_CODEC_ID_GSM,
- .priv_class = &class,
+ .priv_class = &gsm_class,
};