History

decoding example: reset pts/dts after subpacket.

Michael Niedermayer committed 14 years ago

Commit 0e187fd1 parent 6c39b3c1 file · +2 −0Browse files

Showing the changes to doc/examples/decoding_encoding.c (1 of 1 file). Show all

Unified · Split

doc/examples/decoding_encoding.c+2−0
@@ -180,6 +180,8 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 179 unmodified lines
180180 }
181181 avpkt.size -= len;
182182 avpkt.data += len;
183+ avpkt.dts =
184+ avpkt.pts = AV_NOPTS_VALUE;
183185 if (avpkt.size < AUDIO_REFILL_THRESH) {
184186 /* Refill the input buffer, to avoid trying to decode
185187 * incomplete frames. Instead of this, one could also use

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t