OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c39b3c
)
decoding example: reset pts/dts after subpacket.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 13 Dec 2011 18:47:57 +0000
(19:47 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 13 Dec 2011 18:47:57 +0000
(19:47 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/examples/decoding_encoding.c
patch
|
blob
|
history
diff --git
a/doc/examples/decoding_encoding.c
b/doc/examples/decoding_encoding.c
index
f87a8c9
..
5271edf
100644
(file)
--- a/
doc/examples/decoding_encoding.c
+++ b/
doc/examples/decoding_encoding.c
@@
-180,6
+180,8
@@
static void audio_decode_example(const char *outfilename, const char *filename)
}
avpkt.size -= len;
avpkt.data += len;
+ avpkt.dts =
+ avpkt.pts = AV_NOPTS_VALUE;
if (avpkt.size < AUDIO_REFILL_THRESH) {
/* Refill the input buffer, to avoid trying to decode
* incomplete frames. Instead of this, one could also use