diff --git a/doc/examples/decode_audio.c b/doc/examples/decode_audio.c index f66e577940..fb9a9af2f6 100644 --- a/doc/examples/decode_audio.c +++ b/doc/examples/decode_audio.c @@ -170,6 +170,11 @@ int main(int argc, char **argv) } } + /* flush the decoder */ + pkt->data = NULL; + pkt->size = 0; + decode(c, pkt, decoded_frame, outfile); + fclose(outfile); fclose(f);