[FFmpeg-cvslog] avformat/mpjpegdec: remove extra newlines

Paul B Mahol git at videolan.org
Mon Sep 11 22:59:23 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep 11 10:52:06 2023 +0200| [8042f658f7b98a26b4bc4a9ce9fbd8f8db828093] | committer: Paul B Mahol

avformat/mpjpegdec: remove extra newlines

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8042f658f7b98a26b4bc4a9ce9fbd8f8db828093
---

 libavformat/mpjpegdec.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index f1d2d34689..236aed716a 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -26,8 +26,6 @@
 #include "internal.h"
 #include "avio_internal.h"
 
-
-
 typedef struct MPJPEGDemuxContext {
     const AVClass *class;
     char       *boundary;
@@ -36,7 +34,6 @@ typedef struct MPJPEGDemuxContext {
     int         strict_mime_boundary;
 } MPJPEGDemuxContext;
 
-
 static void trim_right(char *p)
 {
     char *end;
@@ -63,8 +60,6 @@ static int get_line(AVIOContext *pb, char *line, int line_size)
     return 0;
 }
 
-
-
 static int split_tag_value(char **tag, char **value, char *line)
 {
     char *p = line;
@@ -73,7 +68,6 @@ static int split_tag_value(char **tag, char **value, char *line)
     *tag = NULL;
     *value = NULL;
 
-
     while (*p != '\0' && *p != ':') {
         if (!av_isspace(*p)) {
             foundData = 1;
@@ -245,7 +239,6 @@ static int parse_multipart_header(AVIOContext *pb,
     return found_content_type ? 0 : AVERROR_INVALIDDATA;
 }
 
-
 static char* mpjpeg_get_boundary(AVIOContext* pb)
 {
     uint8_t *mime_type = NULL;
@@ -289,7 +282,6 @@ static char* mpjpeg_get_boundary(AVIOContext* pb)
     return res;
 }
 
-
 static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
     int size;
@@ -318,8 +310,6 @@ static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
     }
 
     ret = parse_multipart_header(s->pb, &size, mpjpeg->boundary, s);
-
-
     if (ret < 0)
         return ret;
 
@@ -365,14 +355,12 @@ static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
 }
 
 #define OFFSET(x) offsetof(MPJPEGDemuxContext, x)
-
 #define DEC AV_OPT_FLAG_DECODING_PARAM
 static const AVOption mpjpeg_options[] = {
     { "strict_mime_boundary",  "require MIME boundaries match", OFFSET(strict_mime_boundary), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
     { NULL }
 };
 
-
 static const AVClass mpjpeg_demuxer_class = {
     .class_name     = "MPJPEG demuxer",
     .item_name      = av_default_item_name,
@@ -393,5 +381,3 @@ const AVInputFormat ff_mpjpeg_demuxer = {
     .priv_class        = &mpjpeg_demuxer_class,
     .flags             = AVFMT_NOTIMESTAMPS,
 };
-
-



More information about the ffmpeg-cvslog mailing list