[FFmpeg-cvslog] avformat/matroskadec: fix BitsPerChannel element's default value

James Almer git at videolan.org
Wed Oct 19 05:58:55 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Oct 18 23:55:32 2016 -0300| [0ad71ed6f98e43fe99e642e95eb14436820521c7] | committer: James Almer

avformat/matroskadec: fix BitsPerChannel element's default value

The element is currently ignored, so there's no effective functionality
change with this.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 0fe1533..32f5e49 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -408,7 +408,7 @@ static const EbmlSyntax matroska_mastering_meta[] = {
 
 static const EbmlSyntax matroska_track_video_color[] = {
     { MATROSKA_ID_VIDEOCOLORMATRIXCOEFF,      EBML_UINT, 0, offsetof(MatroskaTrackVideoColor, matrix_coefficients), { .u = AVCOL_SPC_UNSPECIFIED } },
-    { MATROSKA_ID_VIDEOCOLORBITSPERCHANNEL,   EBML_UINT, 0, offsetof(MatroskaTrackVideoColor, bits_per_channel), { .u=8 } },
+    { MATROSKA_ID_VIDEOCOLORBITSPERCHANNEL,   EBML_UINT, 0, offsetof(MatroskaTrackVideoColor, bits_per_channel), { .u=0 } },
     { MATROSKA_ID_VIDEOCOLORCHROMASUBHORZ,    EBML_UINT, 0, offsetof(MatroskaTrackVideoColor, chroma_sub_horz), { .u=0 } },
     { MATROSKA_ID_VIDEOCOLORCHROMASUBVERT,    EBML_UINT, 0, offsetof(MatroskaTrackVideoColor, chroma_sub_vert), { .u=0 } },
     { MATROSKA_ID_VIDEOCOLORCBSUBHORZ,        EBML_UINT, 0, offsetof(MatroskaTrackVideoColor, cb_sub_horz), { .u=0 } },



More information about the ffmpeg-cvslog mailing list