mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
ffmpeg compil versions warnnings
Origin commit data
------------------
Branch: master
Commit: 2c025f2e4f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -230,7 +230,9 @@ void write_frame(AVFrame *in_frame, FILE *fp)
|
||||
if (avcodec_open2(codec_context, codec, 0) != -1)
|
||||
{
|
||||
AVPacket pkt;
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
|
||||
av_init_packet(&pkt);
|
||||
#endif
|
||||
/* encode the image */
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,37,100)
|
||||
int got_output = 0;
|
||||
@@ -395,7 +397,9 @@ int image_to_mpeg2(const char *image_name, const char *encode_name)
|
||||
if (codecContext)
|
||||
{
|
||||
AVPacket packet;
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
|
||||
av_init_packet(&packet);
|
||||
#endif
|
||||
if ((ret = av_read_frame(formatContext, &packet)) != -1)
|
||||
{
|
||||
FILE *fp = fopen(encode_name, "wb");
|
||||
|
Reference in New Issue
Block a user