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
ef973bd9
Commit
ef973bd9
authored
Sep 12, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mxfenc: Fix labels for IEC PAL DV 420
parent
a56ec48d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
mxfenc.c
libavformat/mxfenc.c
+9
-0
mxf_dv25
tests/ref/lavf/mxf_dv25
+1
-1
No files found.
libavformat/mxfenc.c
View file @
ef973bd9
...
...
@@ -48,6 +48,7 @@
#include "libavutil/time_internal.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/dnxhddata.h"
#include "libavcodec/dv_profile.h"
#include "libavcodec/h264.h"
#include "libavcodec/internal.h"
#include "audiointerleave.h"
...
...
@@ -1812,6 +1813,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
MXFStreamContext
*
sc
=
st
->
priv_data
;
uint8_t
*
vs_pack
,
*
vsc_pack
;
int
i
,
ul_index
,
frame_size
,
stype
,
pal
;
const
AVDVProfile
*
profile
;
if
(
mxf
->
header_written
)
return
1
;
...
...
@@ -1820,6 +1822,8 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
if
(
pkt
->
size
<
120000
)
return
-
1
;
profile
=
av_dv_frame_profile
(
NULL
,
pkt
->
data
,
pkt
->
size
);
vs_pack
=
pkt
->
data
+
80
*
5
+
48
;
vsc_pack
=
pkt
->
data
+
80
*
5
+
53
;
stype
=
vs_pack
[
3
]
&
0x1f
;
...
...
@@ -1854,6 +1858,11 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
frame_size
=
pal
?
288000
:
240000
;
break
;
default:
// DV25
if
(
profile
&&
profile
->
pix_fmt
==
AV_PIX_FMT_YUV420P
&&
pal
)
{
ul_index
=
INDEX_DV25_525_60_IEC
+
pal
;
frame_size
=
pal
?
144000
:
120000
;
break
;
}
ul_index
=
INDEX_DV25_525_60
+
pal
;
frame_size
=
pal
?
144000
:
120000
;
}
...
...
tests/ref/lavf/mxf_dv25
View file @
ef973bd9
de98603ecc27c2f3cefd192d4820d3f4
*./tests/data/lavf/lavf.mxf_dv25
1871bd11947924116776201f24fd0adf
*./tests/data/lavf/lavf.mxf_dv25
3833389 ./tests/data/lavf/lavf.mxf_dv25
./tests/data/lavf/lavf.mxf_dv25 CRC=0xbdaf7f52
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