[FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

Nicolas George george at nsup.org
Tue Mar 23 21:11:58 EET 2021


Nicolas George (12021-03-23):
> And it is exactly what we are doing when we let users access fields
> directly.

I mean:

	AVStream **streams = ctx->streams;
	av_read_frame(ctx, &packet);
	AVStream *stream = streams[packet.stream_index];

That should work, right?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210323/8b85dd3a/attachment.sig>


More information about the ffmpeg-devel mailing list