Browse Source

yuv4mpeg: do not use deprecated functions

Use the libavutil replacement.
tags/n1.2
Luca Barbato 12 years ago
parent
commit
a800fd5fc7
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavformat/yuv4mpeg.c

+ 4
- 2
libavformat/yuv4mpeg.c View File

@@ -18,6 +18,8 @@
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "libavutil/pixdesc.h"
#include "avformat.h"
#include "internal.h"

@@ -128,8 +130,8 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)

if (st->codec->pix_fmt != AV_PIX_FMT_GRAY8) {
// Adjust for smaller Cb and Cr planes
avcodec_get_chroma_sub_sample(st->codec->pix_fmt, &h_chroma_shift,
&v_chroma_shift);
av_pix_fmt_get_chroma_sub_sample(st->codec->pix_fmt, &h_chroma_shift,
&v_chroma_shift);
width >>= h_chroma_shift;
height >>= v_chroma_shift;



Loading…
Cancel
Save