[Libav-user] get frame type

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Mar 21 11:20:33 CET 2012

Robert Krüger <krueger at ...> writes:

> my question was rather if the field _can_ make sense for h.264 as I
> have not found anything in the h.264 spec saying that a frame cannot
> contain a mixture of I, P, B (and other) slices. What would the value
> of the field then be? Only set to a value, if all slices of the frame
> are of the same type (which then should be documented somewhere)? I
> don't know if this is relevant for practical purposes, because I do
> not know if those streams exist in the wild

They definitely do exist - most PAFF samples contain the described 
mixtures, so I expect the problem exists exactly as you say.

Carl Eugen

More information about the Libav-user mailing list