I am currently using ByteIOContext callback implementation int(* read_packet )(void *opaque, uint8_t *buf, int buf_size) to read mpeg ts data from udp socket. My problem is: I need to know if the frame I read is the key frame, or not... E.g. I'd like to read AVPacket to check if flags == PKT_FLAG_KEY , not just payload... Is there any way I could use av_read_frame to read from socket vs. file? Is there other way I could get AVPacket when reading from socket? Thank you, -V _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
