aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g2meet.c
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-03-31 10:40:34 +0200
committerClément Bœsch <cboesch@gopro.com>2017-03-31 10:40:34 +0200
commite3287077ecff33bd02227b85ec760fe47d796f54 (patch)
treed94ccb713264f90ad6048bfab85ef7fb85807fca /libavcodec/g2meet.c
parentb6c293d5e609a7b651c47d3de4749840ae00492e (diff)
parent67deba8a416d818f3d95aef0aa916589090396e2 (diff)
downloadffmpeg-e3287077ecff33bd02227b85ec760fe47d796f54.tar.gz
Merge commit '67deba8a416d818f3d95aef0aa916589090396e2'
* commit '67deba8a416d818f3d95aef0aa916589090396e2': Use avpriv_report_missing_feature() where appropriate Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavcodec/g2meet.c')
-rw-r--r--libavcodec/g2meet.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index b0af3ec046..10b6808f81 100644
--- a/libavcodec/g2meet.c
+++ b/libavcodec/g2meet.c
@@ -1442,9 +1442,8 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
}
c->compression = bytestream2_get_be32(&bc);
if (c->compression != 2 && c->compression != 3) {
- av_log(avctx, AV_LOG_ERROR,
- "Unknown compression method %d\n",
- c->compression);
+ avpriv_report_missing_feature(avctx, "Compression method %d",
+ c->compression);
ret = AVERROR_PATCHWELCOME;
goto header_fail;
}
@@ -1475,9 +1474,9 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
g_mask = bytestream2_get_be32(&bc);
b_mask = bytestream2_get_be32(&bc);
if (r_mask != 0xFF0000 || g_mask != 0xFF00 || b_mask != 0xFF) {
- av_log(avctx, AV_LOG_ERROR,
- "Invalid or unsupported bitmasks: R=%"PRIX32", G=%"PRIX32", B=%"PRIX32"\n",
- r_mask, g_mask, b_mask);
+ avpriv_report_missing_feature(avctx,
+ "Bitmasks: R=%"PRIX32", G=%"PRIX32", B=%"PRIX32,
+ r_mask, g_mask, b_mask);
ret = AVERROR_PATCHWELCOME;
goto header_fail;
}