[FFmpeg-devel] parse_packet

Panagiotis Issaris takis.issaris
Thu Jun 7 17:09:41 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to figure out how h264_parse_packet() is supposed to work,
and so, I started looking at rtp_parse_packet().

The question I have is whether h264_parse_packet() is supposed to return
only complete NAL units or if it is supposed to return AVPackets
containing parts of NAL units. Currently it seems to return AVPackets
containing parts of NAL units if NAL units had been split across RTP
packets.

The documentation of rtp_parse_packet() says:
"""@return 0 if a packet is returned, 1 if a packet is returned and more
can follow (use buf as NULL to read the next). -1 if no packet (error or
no more packet)."""

Do I understand this correctly to mean that if 1 is returned the RTP
packet contained multiple parts which will result in multiple AVPackets?


With friendly regards,
Takis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaB+19kOxLuzz4CkRAtLEAJ9mNbJBiPaJuao0NDjfkFQaKkS7OACaAuGa
tHB0xjdBpV6+8kjgg1HaER8=
=jEZX
-----END PGP SIGNATURE-----




More information about the ffmpeg-devel mailing list