[FFmpeg-devel] [PATCH v4] libavcodec: Add FLAC API test

Ludmila Glinskih lglinskih at gmail.com
Tue Apr 21 23:19:24 CEST 2015


OOOOOOOOOOPS

вт, 21 апр. 2015 г. в 8:03, James Almer <jamrial at gmail.com>:

> On 19/04/15 9:03 PM, Ludmila Glinskih wrote:
>
> > +static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
> > +                    AVCodecContext *dec_ctx)
> > +{
> > +    AVPacket enc_pkt;
> > +    AVFrame *in_frame, *out_frame;
> > +    uint8_t *raw_in = NULL, *raw_out = NULL;
> > +    int in_offset = 0, out_offset = 0;
> > +    int frame_data_size = 0;
>
> This
>
> [...]
>
> > +    if (memcmp(raw_in, raw_out, frame_data_size * NUMBER_OF_FRAMES) !=
> 0)
>
> And this are the only lines where frame_data_size is used. This means it's
> always 0.
> Is that intended? Because unless i'm missing something, that doesn't seem
> right for
> a memcmp.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list