]> git.sesse.net Git - ffmpeg/commitdiff
lavc, lavf: Remove newlines from calls to avpriv_request_sample().
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 11 Oct 2020 17:59:24 +0000 (19:59 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 11 Oct 2020 17:59:24 +0000 (19:59 +0200)
libavcodec/adpcm.c
libavcodec/alsdec.c
libavcodec/g2meet.c
libavcodec/h264_direct.c
libavcodec/mpeg4videodec.c
libavcodec/tiff.c
libavformat/dhav.c
libavformat/vividas.c

index 37d503ff6c7c5fdc7344173f7574ce0fec942938..f7da3dcf8980babf9aff83441cd04e6a9e36ca83 100644 (file)
@@ -129,7 +129,7 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
         min_channels = 2;
         max_channels = 8;
         if (avctx->channels & 1) {
-            avpriv_request_sample(avctx, "channel count %d\n", avctx->channels);
+            avpriv_request_sample(avctx, "channel count %d", avctx->channels);
             return AVERROR_PATCHWELCOME;
         }
         break;
index 62c6036037890fd72cb2e46804bacb168256125a..c2c460a29c70a58e303ca214d7e8acbe19f115d2 100644 (file)
@@ -350,7 +350,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
         return AVERROR_INVALIDDATA;
 
     if (avctx->channels > FF_SANE_NB_CHANNELS) {
-        avpriv_request_sample(avctx, "Huge number of channels\n");
+        avpriv_request_sample(avctx, "Huge number of channels");
         return AVERROR_PATCHWELCOME;
     }
 
index 7ef275c9fecaceb317fcb72344e52fcc06e87cc7..6b870ae3d44cfde8cc5576f74665c2c7b7f07aa1 100644 (file)
@@ -560,7 +560,7 @@ static uint32_t epic_decode_pixel_pred(ePICContext *dc, int x, int y,
     }
 
     if (R<0 || G<0 || B<0 || R > 255 || G > 255 || B > 255) {
-        avpriv_request_sample(NULL, "RGB %d %d %d is out of range\n", R, G, B);
+        avpriv_request_sample(NULL, "RGB %d %d %d (out of range)", R, G, B);
         return 0;
     }
 
index a01d823e7ad622e095ae52e0707f50e9fe16e24b..8f079811303c67daac0d601774a623696964d052 100644 (file)
@@ -43,7 +43,7 @@ static int get_scale_factor(H264SliceContext *sl,
     int td = av_clip_int8(pocdiff);
 
     if (pocdiff != (int)pocdiff)
-        avpriv_request_sample(sl->h264->avctx, "pocdiff overflow\n");
+        avpriv_request_sample(sl->h264->avctx, "pocdiff overflow");
 
     if (td == 0 || sl->ref_list[0][i].parent->long_ref) {
         return 256;
index 14fb79261d848d6ba5daa129e47a088cde2d17c8..95a0e63a291a4fcb242ed8d7d9e2d19630d99744 100644 (file)
@@ -3347,7 +3347,7 @@ int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb, int
                 next_start_code_studio(gb);
                 extension_and_user_data(s, gb, 0);
             } else if (s->studio_profile) {
-                avpriv_request_sample(s->avctx, "Mixes studio and non studio profile\n");
+                avpriv_request_sample(s->avctx, "Mix of studio and non studio profile");
                 return AVERROR_PATCHWELCOME;
             }
             s->avctx->profile = profile;
index 9bf08b1900182c8e2f390c29cfc613306fd108e9..2e4546421888e1539a027c380d7caf4548bd2e62 100644 (file)
@@ -1590,7 +1590,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
         break;
     case TIFF_GEO_KEY_DIRECTORY:
         if (s->geotag_count) {
-            avpriv_request_sample(s->avctx, "Multiple geo key directories\n");
+            avpriv_request_sample(s->avctx, "Multiple geo key directories");
             return AVERROR_INVALIDDATA;
         }
         ADD_METADATA(1, "GeoTIFF_Version", NULL);
@@ -1860,7 +1860,7 @@ again:
             return AVERROR_INVALIDDATA;
         }
         if (off <= last_off) {
-            avpriv_request_sample(s->avctx, "non increasing IFD offset\n");
+            avpriv_request_sample(s->avctx, "non increasing IFD offset");
             return AVERROR_INVALIDDATA;
         }
         if (off >= UINT_MAX - 14 || avpkt->size < off + 14) {
index 5e9abdb611360d8db4b85828ae55d5ff9a012340..79afe9be03d9ac80d1a3e919d0ea26e6dac92325 100644 (file)
@@ -359,7 +359,7 @@ retry:
         case 0x4:
         case 0x8: st->codecpar->codec_id = AV_CODEC_ID_H264;  break;
         case 0xc: st->codecpar->codec_id = AV_CODEC_ID_HEVC;  break;
-        default: avpriv_request_sample(s, "Unknown video codec %X\n", dhav->video_codec);
+        default: avpriv_request_sample(s, "Unknown video codec %X", dhav->video_codec);
         }
         st->duration             = dhav->duration;
         st->codecpar->width      = dhav->width;
@@ -392,7 +392,7 @@ retry:
         case 0x1f: st->codecpar->codec_id = AV_CODEC_ID_MP2;       break;
         case 0x21: st->codecpar->codec_id = AV_CODEC_ID_MP3;       break;
         case 0x0d: st->codecpar->codec_id = AV_CODEC_ID_ADPCM_MS;  break;
-        default: avpriv_request_sample(s, "Unknown audio codec %X\n", dhav->audio_codec);
+        default: avpriv_request_sample(s, "Unknown audio codec %X", dhav->audio_codec);
         }
         st->duration              = dhav->duration;
         st->codecpar->channels    = dhav->audio_channels;
index 7917df5d64f6bf01ad58909b87255abe53c31475..4b2801ef342c34e68f4907f32defd72dc08322c6 100644 (file)
@@ -156,7 +156,7 @@ static void decode_block(uint8_t *src, uint8_t *dest, unsigned size,
         uint32_t tmpkey = *key_ptr - key;
         if (a2 > s) {
             a2 = s;
-            avpriv_request_sample(NULL, "tiny aligned block\n");
+            avpriv_request_sample(NULL, "tiny aligned block");
         }
         memcpy(tmp + align, src, a2);
         xor_block(tmp, tmp, 4, key, &tmpkey);