[FFmpeg-devel] [PATCH] mxfdec: minor simplification.

Tomas Härdin tomas.hardin at codemill.se
Sun Oct 19 23:59:53 CEST 2014


On Sat, 2014-10-18 at 15:26 +0200, Reimar Döffinger wrote:
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> ---
>  libavformat/mxfdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
> index 9306cc6..f916d01 100644
> --- a/libavformat/mxfdec.c
> +++ b/libavformat/mxfdec.c
> @@ -2442,7 +2442,7 @@ static int mxf_read_packet_old(AVFormatContext *s, AVPacket *pkt)
>              pkt->stream_index = index;
>              pkt->pos = klv.offset;
>  
> -            codec = s->streams[index]->codec;
> +            codec = st->codec;
>  
>              if (codec->codec_type == AVMEDIA_TYPE_VIDEO && next_ofs >= 0) {
>                  /* mxf->current_edit_unit good - see if we have an

OK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141019/a8e42a1b/attachment.asc>


More information about the ffmpeg-devel mailing list