fmt.Printf("framenum,source,blockw,blockh,srcx,srcy,dstx,dsty,flags\n")/* read frames from the file */forfmt_ctx.AvReadFrame(&pkt) >=0{ifpkt.StreamIndex ==uint32(video_stream_idx) { ret = decode_packet(&pkt) } pkt.AvPacketUnref()ifret <0{break} }/* flush cached frames *...
if pkt.StreamIndex == uint32(video_stream_idx) { ret = decode_packet(&pkt) } pkt.AvPacketUnref() if ret < 0 { break } } /* flush cached frames */ decode_packet(nil) break } // end: libavcodec.AvcodecFreeContext(&video_dec_ctx) libavformat.AvformatCloseInput(&fmt_ctx) libavutil...