Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c723108e
Commit
c723108e
authored
Jan 14, 2017
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/matroskaenc: Do not write two CodecID elements for rawvideo.
Fixes ticket #6068.
parent
1412e5a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
matroskaenc.c
libavformat/matroskaenc.c
+2
-1
rgb24-mkv
tests/ref/fate/rgb24-mkv
+2
-2
No files found.
libavformat/matroskaenc.c
View file @
c723108e
...
...
@@ -1119,6 +1119,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
}
else
{
// look for a codec ID string specific to mkv to use,
// if none are found, use AVI codes
if
(
par
->
codec_id
!=
AV_CODEC_ID_RAWVIDEO
||
par
->
codec_tag
)
{
for
(
j
=
0
;
ff_mkv_codec_tags
[
j
].
id
!=
AV_CODEC_ID_NONE
;
j
++
)
{
if
(
ff_mkv_codec_tags
[
j
].
id
==
par
->
codec_id
)
{
put_ebml_string
(
pb
,
MATROSKA_ID_CODECID
,
ff_mkv_codec_tags
[
j
].
str
);
...
...
@@ -1126,7 +1127,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
break
;
}
}
if
(
par
->
codec_id
==
AV_CODEC_ID_RAWVIDEO
&&
!
par
->
codec_tag
)
{
}
else
{
if
(
mkv
->
allow_raw_vfw
)
{
native_id
=
0
;
}
else
{
...
...
tests/ref/fate/rgb24-mkv
View file @
c723108e
94cce0d7d5b14b4c86e74a1ca454c5aa
*tests/data/fate/rgb24-mkv.matroska
583
61
tests/data/fate/rgb24-mkv.matroska
55270be3b5d393d770a1dfcb19b68271
*tests/data/fate/rgb24-mkv.matroska
583
45
tests/data/fate/rgb24-mkv.matroska
#tb 0: 1/10
#media_type 0: video
#codec_id 0: rawvideo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment