diff mbox

[FFmpeg-devel] lavc/vp9_superframe_bsf: avoid error messages in one line

Message ID 1558019071-29578-1-git-send-email-linjie.fu@intel.com
State Accepted
Commit 154a730bdcae92deca21168f54df91babc6a2d88
Headers show

Commit Message

Fu, Linjie May 16, 2019, 3:04 p.m. UTC
Add "\n" to avoid continuous error messages in one line.

Signed-off-by: Fu Linjie <linjie.fu@intel.com>
---
 libavcodec/vp9_superframe_bsf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Thompson May 20, 2019, 11:16 p.m. UTC | #1
On 16/05/2019 16:04, Fu Linjie wrote:
> Add "\n" to avoid continuous error messages in one line.
> 
> Signed-off-by: Fu Linjie <linjie.fu@intel.com>
> ---
>  libavcodec/vp9_superframe_bsf.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/vp9_superframe_bsf.c b/libavcodec/vp9_superframe_bsf.c
> index ea67507..23933d4 100644
> --- a/libavcodec/vp9_superframe_bsf.c
> +++ b/libavcodec/vp9_superframe_bsf.c
> @@ -133,7 +133,7 @@ static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out)
>  
>      if (uses_superframe_syntax && s->n_cache > 0) {
>          av_log(ctx, AV_LOG_ERROR,
> -               "Mixing of superframe syntax and naked VP9 frames not supported");
> +               "Mixing of superframe syntax and naked VP9 frames not supported\n");
>          res = AVERROR(ENOSYS);
>          goto done;
>      } else if ((!invisible || uses_superframe_syntax) && !s->n_cache) {
> @@ -142,7 +142,7 @@ static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out)
>          goto done;
>      } else if (s->n_cache + 1 >= MAX_CACHE) {
>          av_log(ctx, AV_LOG_ERROR,
> -               "Too many invisible frames");
> +               "Too many invisible frames\n");
>          res = AVERROR_INVALIDDATA;
>          goto done;
>      }
> 

Yep, applied.

Thanks!

- Mark
diff mbox

Patch

diff --git a/libavcodec/vp9_superframe_bsf.c b/libavcodec/vp9_superframe_bsf.c
index ea67507..23933d4 100644
--- a/libavcodec/vp9_superframe_bsf.c
+++ b/libavcodec/vp9_superframe_bsf.c
@@ -133,7 +133,7 @@  static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out)
 
     if (uses_superframe_syntax && s->n_cache > 0) {
         av_log(ctx, AV_LOG_ERROR,
-               "Mixing of superframe syntax and naked VP9 frames not supported");
+               "Mixing of superframe syntax and naked VP9 frames not supported\n");
         res = AVERROR(ENOSYS);
         goto done;
     } else if ((!invisible || uses_superframe_syntax) && !s->n_cache) {
@@ -142,7 +142,7 @@  static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *out)
         goto done;
     } else if (s->n_cache + 1 >= MAX_CACHE) {
         av_log(ctx, AV_LOG_ERROR,
-               "Too many invisible frames");
+               "Too many invisible frames\n");
         res = AVERROR_INVALIDDATA;
         goto done;
     }