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
f35d5f96
Commit
f35d5f96
authored
Oct 31, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/avienc: enable debug log
parent
29a9e4d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
avienc.c
libavformat/avienc.c
+6
-2
No files found.
libavformat/avienc.c
View file @
f35d5f96
...
...
@@ -18,6 +18,9 @@
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
//#define DEBUG
#include "avformat.h"
#include "internal.h"
#include "avi.h"
...
...
@@ -26,6 +29,7 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/avassert.h"
#include "libavutil/timestamp.h"
/*
* TODO:
...
...
@@ -504,7 +508,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
AVCodecContext
*
enc
=
s
->
streams
[
stream_index
]
->
codec
;
int
size
=
pkt
->
size
;
// av_log(s, AV_LOG_DEBUG, "%"PRId64" %d %d\n", pkt->dts
, avist->packet_count, stream_index);
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
){
AVPacket
empty_packet
;
...
...
@@ -518,7 +522,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
empty_packet
.
data
=
NULL
;
empty_packet
.
stream_index
=
stream_index
;
avi_write_packet
(
s
,
&
empty_packet
);
// av_log(s, AV_LOG_DEBUG, "dup %"PRId64" %d\n", pkt->dts
, avist->packet_count);
av_dlog
(
s
,
"dup dts:%s packet_count:%d
\n
"
,
av_ts2str
(
pkt
->
dts
)
,
avist
->
packet_count
);
}
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