Guest User

Untitled

a guest
Jan 6th, 2013
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. /* read frames from the file */
  2. while (av_read_frame(fmt_ctx, &pkt) >= 0) {
  3. //decode_packet(&got_frame, 0);
  4. if (audio_stream_idx == pkt.stream_index)
  5. printf("Frame found!\n");
  6. else
  7. continue;
  8. fwrite(pkt.data, 1, pkt.size, audio_dst_file);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment