On Mon, Jul 18, 2016 at 07:50:39PM +0200, Luca Barbato wrote:
> --- a/libavcodec/ac3_parser.c
> +++ b/libavcodec/ac3_parser.c
> @@ -75,29 +75,31 @@ int avpriv_ac3_parse_header(BitstreamContext *bcp, 
> AC3HeaderInfo *hdr)
>  
>      if(hdr->bitstream_id <= 10) {
>          /* Normal AC-3 */
> -        hdr->crc1    = bitstream_read(&bc, 16);
> -        hdr->sr_code = bitstream_read(&bc,  2);
> +        // bitsream_prefetch(&bc, 29); 29 bits already present due _peek

typo

> @@ -109,31 +111,32 @@ int avpriv_ac3_parse_header(BitstreamContext *bcp, 
> AC3HeaderInfo *hdr)
>      } else {
>          /* Enhanced AC-3 */
>          hdr->crc1 = 0;
> -        hdr->frame_type = bitstream_read(&bc, 2);
> +        // bitsream_prefetch(&bc, 29); 29 bits already present due _peek

same

probably OK otherwise

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to