On Fri, Oct 31, 2014 at 11:24 AM, John Stebbins <[email protected]> wrote:
> Add SPS_EXT, SEI, and subset SPS to codes that are skipped during split.
> These codes can come before the PPS and results in incomplete extradata.
> ---
>  libavcodec/h264_parser.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
> index 145dce3..2ed3dd0 100644
> --- a/libavcodec/h264_parser.c
> +++ b/libavcodec/h264_parser.c
> @@ -473,8 +473,10 @@ static int h264_split(AVCodecContext *avctx,
>           *     (state&0xFFFFFF1F) == 0x105) {
>           *  }
>           */
> -        if ((state & 0xFFFFFF00) == 0x100 && (state & 0xFFFFFF1F) != 0x107 &&
> -            (state & 0xFFFFFF1F) != 0x108 && (state & 0xFFFFFF1F) != 0x109) {
> +        if ((state & 0xFFFFFF00) == 0x100 && (state & 0xFFFFFF1F) != 0x106 &&
> +            (state & 0xFFFFFF1F) != 0x107 && (state & 0xFFFFFF1F) != 0x108 &&
> +            (state & 0xFFFFFF1F) != 0x109 && (state & 0xFFFFFF1F) != 0x10d &&
> +            (state & 0xFFFFFF1F) != 0x10f) {
>              if (has_sps) {
>                  while (i > 4 && buf[i - 5] == 0)
>                      i--;

This looks potentially good. Hendrik, any more comments?
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to