~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythtv/mythcodecid.h

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-10-02 00:23:18 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20091002002318-5qu2fr0gxl59egft
Tags: 0.22.0~trunk22167-0ubuntu1
* New upstream checkout (r22167).
  - Fixes some segfaults.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
// AV codec id convenience functions
110
110
int mpeg_version(int codec_id);
111
111
#define CODEC_IS_H264(id)     (mpeg_version(id) == 5)
112
 
#define CODEC_IS_MPEG(id)     (mpeg_version(id) <= 2)
 
112
#define CODEC_IS_MPEG(id)     (mpeg_version(id) && mpeg_version(id) <= 2)
113
113
#define CODEC_IS_FFMPEG_MPEG(id) (CODEC_IS_MPEG(id) &&\
114
114
                                 (id != CODEC_ID_MPEG2VIDEO_DVDV))
115
115
#define CODEC_IS_XVMC(codec) (codec && (codec->id == CODEC_ID_MPEG2VIDEO_XVMC ||\