Skip to content

Instantly share code, notes, and snippets.

@dwbuiten
Created March 23, 2018 21:23
Show Gist options
  • Save dwbuiten/ded31a4643556f96eedf24badef4fecc to your computer and use it in GitHub Desktop.
Save dwbuiten/ded31a4643556f96eedf24badef4fecc to your computer and use it in GitHub Desktop.
@@ -537,6 +537,13 @@ bool FFMS_VideoSource::DecodePacket(AVPacket *Packet) {
if (!(Packet->flags & AV_PKT_FLAG_DISCARD))
DelayCounter++;
}
+ {
+ AVFrame *t = av_frame_alloc();
+ int SA = avcodec_receive_frame(CodecContext, t);
+ printf("SA = %d\n", SA);
+ av_frame_free(&t);
+ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment