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
27d460fe
Commit
27d460fe
authored
May 23, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refuse to mux H.264 with fourcc H264 into avi without startcode.
Fixes ticket #3638.
parent
6a4832ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Makefile
libavformat/Makefile
+1
-1
avienc.c
libavformat/avienc.c
+6
-0
No files found.
libavformat/Makefile
View file @
27d460fe
...
...
@@ -83,7 +83,7 @@ OBJS-$(CONFIG_AST_MUXER) += ast.o astenc.o
OBJS-$(CONFIG_AU_DEMUXER)
+=
au.o
pcm.o
OBJS-$(CONFIG_AU_MUXER)
+=
au.o
rawenc.o
OBJS-$(CONFIG_AVI_DEMUXER)
+=
avidec.o
OBJS-$(CONFIG_AVI_MUXER)
+=
avienc.o
avlanguage.o
OBJS-$(CONFIG_AVI_MUXER)
+=
avienc.o
mpegtsenc.o
avlanguage.o
OBJS-$(CONFIG_AVISYNTH)
+=
avisynth.o
OBJS-$(CONFIG_AVM2_MUXER)
+=
swfenc.o
swf.o
OBJS-$(CONFIG_AVR_DEMUXER)
+=
avr.o
pcm.o
...
...
libavformat/avienc.c
View file @
27d460fe
...
...
@@ -26,6 +26,7 @@
#include "avi.h"
#include "avio_internal.h"
#include "riff.h"
#include "mpegts.h"
#include "libavformat/avlanguage.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
...
...
@@ -570,6 +571,11 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
AVIStream
*
avist
=
s
->
streams
[
stream_index
]
->
priv_data
;
AVCodecContext
*
enc
=
s
->
streams
[
stream_index
]
->
codec
;
if
(
enc
->
codec_id
==
AV_CODEC_ID_H264
&&
enc
->
codec_tag
==
MKTAG
(
'H'
,
'2'
,
'6'
,
'4'
))
{
int
ret
=
ff_check_h264_startcode
(
s
,
s
->
streams
[
stream_index
],
pkt
);
if
(
ret
<
0
)
return
ret
;
}
av_dlog
(
s
,
"dts:%s packet_count:%d stream_index:%d
\n
"
,
av_ts2str
(
pkt
->
dts
),
avist
->
packet_count
,
stream_index
);
while
(
enc
->
block_align
==
0
&&
pkt
->
dts
!=
AV_NOPTS_VALUE
&&
pkt
->
dts
>
avist
->
packet_count
&&
enc
->
codec_id
!=
AV_CODEC_ID_XSUB
&&
avist
->
packet_count
)
{
...
...
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