[FFmpeg-devel] ffmpeg on SH4

Alex Beregszaszi alex
Mon Dec 10 17:16:32 CET 2007


Hi,

> An example code:
> void player2 (char * path)
> {
>      uint8_t cid;
>      AVFormatContext * format;
>      AVPacket * packet;
> 
>      av_register_all ();
>      if (av_open_input_file (&format, path, NULL, 0, NULL))
> 	printf ("open error\n");
> 
>      av_find_stream_info (format);
> 
>      while (1) {
>          av_read_frame (format, packet);
>          printf ("size: %d\n", packet->size);
>          av_free_packet (packet);
>      }
> }
> I don't understand. Do you have an idea?

AVPacket pkt;
av_read_frame(.., &pkt);

--
Alex






More information about the ffmpeg-devel mailing list