New submission from Thomas Dziedzic <[email protected]>:

Compile the following file with: g++ test.cpp -lavformat -Wall
You will get a warning stating:

test.cpp: In function ‘int main(int, char**)’:
test.cpp:14:1: warning: comparison between signed and unsigned integer 
expressions

Using ffmpeg revision 24796 and gcc 4.5.1

----------
files: test.cpp
messages: 11689
priority: normal
status: new
substatus: new
title: Warning comparing AVFrame and AV_NOPTS_VALUE
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2169>
________________________________________________
#include <iostream>

extern "C" {
#define __STDC_CONSTANT_MACROS
#include <libavcodec/avcodec.h>
}

using namespace std;

int main(int argc, char ** argv) {
  AVFrame* frameIn;
  frameIn = avcodec_alloc_frame();

  if ( frameIn->pts == AV_NOPTS_VALUE ) {
    cout << "Hello world!" << endl;
  }

  av_free(frameIn);

  return 0;
}

Reply via email to