[FFmpeg-devel] [PATCH 1/3] lavd/alsa: set frame_size field.

Michael Niedermayer michaelni at gmx.at
Thu Feb 19 01:45:33 CET 2015


On Mon, Feb 16, 2015 at 10:22:15PM +0100, Nicolas George wrote:
> The value tells the typical size of a packet from the demuxer.
> 
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  libavdevice/alsa-audio-common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
> index bf876ed..f4b86bb 100644
> --- a/libavdevice/alsa-audio-common.c
> +++ b/libavdevice/alsa-audio-common.c
> @@ -260,7 +260,7 @@ av_cold int ff_alsa_open(AVFormatContext *ctx, snd_pcm_stream_t mode,
>                 snd_strerror(res));
>          goto fail;
>      }
> -    s->period_size = period_size;
> +    ctx->streams[0]->codec->frame_size = s->period_size = period_size;

doesnt this also set it for the muxer ?
otherwise it is probably ok but you know this code better than i do ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150219/4a0a9a5b/attachment.asc>


More information about the ffmpeg-devel mailing list