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
cd34fd9c
Commit
cd34fd9c
authored
Mar 08, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factorize write packet
Originally committed as revision 17888 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
990287c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
gxfenc.c
libavformat/gxfenc.c
+3
-8
No files found.
libavformat/gxfenc.c
View file @
cd34fd9c
...
...
@@ -762,7 +762,7 @@ static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size)
return
16
;
}
static
int
gxf_write_
media_
packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
static
int
gxf_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
GXFContext
*
gxf
=
s
->
priv_data
;
ByteIOContext
*
pb
=
s
->
pb
;
...
...
@@ -782,14 +782,9 @@ static int gxf_write_media_packet(AVFormatContext *s, AVPacket *pkt)
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
)
gxf
->
nb_fields
+=
2
;
// count fields
return
updatePacketSize
(
pb
,
pos
);
}
put_flush_packet
(
pb
);
static
int
gxf_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
gxf_write_media_packet
(
s
,
pkt
);
put_flush_packet
(
s
->
pb
);
return
0
;
return
updatePacketSize
(
pb
,
pos
);
}
static
int
gxf_interleave_packet
(
AVFormatContext
*
s
,
AVPacket
*
out
,
AVPacket
*
pkt
,
int
flush
)
...
...
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