X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpjpeg.c;h=46a98b3d440cf49e4e61f6e319bbf0779ac811d8;hb=db5effe1a4209e8ace97857e5de0d66a73fe7477;hp=e6f6bcc5f630eca498c0f316fa9e4ffd25a2caa9;hpb=7b7c47c8f70e51d3835a6153c3e467e59acf8a8b;p=ffmpeg diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c index e6f6bcc5f63..46a98b3d440 100644 --- a/libavformat/mpjpeg.c +++ b/libavformat/mpjpeg.c @@ -54,14 +54,13 @@ static int mpjpeg_write_trailer(AVFormatContext *s) } AVOutputFormat ff_mpjpeg_muxer = { - "mpjpeg", - NULL_IF_CONFIG_SMALL("MIME multipart JPEG format"), - "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG, - "mjpg", - 0, - CODEC_ID_NONE, - CODEC_ID_MJPEG, - mpjpeg_write_header, - mpjpeg_write_packet, - mpjpeg_write_trailer, + .name = "mpjpeg", + .long_name = NULL_IF_CONFIG_SMALL("MIME multipart JPEG format"), + .mime_type = "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG, + .extensions = "mjpg", + .audio_codec = CODEC_ID_NONE, + .video_codec = CODEC_ID_MJPEG, + .write_header = mpjpeg_write_header, + .write_packet = mpjpeg_write_packet, + .write_trailer = mpjpeg_write_trailer, };