On 02/05/2012 03:16 PM, Anton Khirnov wrote:

> @@ -960,6 +976,13 @@ static int encode_audio_frame(AVFormatContext *s, 
> OutputStream *ost,
>          }
>      }
>  
> +    if (frame) {
> +        if (!check_recording_time(ost))
> +            return 0;
> +
> +        ost->sync_opts += frame->nb_samples;
> +    }


This could be merged with the block above.

Other than that, LGTM.

-Justin

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to