~ubuntu-branches/ubuntu/vivid/gst-libav1.0/vivid

« back to all changes in this revision

Viewing changes to ext/libav/gstavcodecmap.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge, Iain Lane, Sebastian Dröge
  • Date: 2014-02-09 11:42:06 UTC
  • mfrom: (21.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140209114206-jtvbwdvxi1v3klx7
Tags: 1.2.3-1
[ Iain Lane ]
* Drop ltmain-as-needed patch and do the same with dh_autoreconf
  --as-needed.

[ Sebastian Dröge ]
* New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1438
1438
    case AV_CODEC_ID_VC1:
1439
1439
      caps =
1440
1440
          gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/x-wmv",
1441
 
          "wmvversion", G_TYPE_INT, 3, "format", G_TYPE_STRING, "WVC1", NULL);
 
1441
          "wmvversion", G_TYPE_INT, 3, NULL);
 
1442
      if (!context && !encode) {
 
1443
        GValue arr = { 0, };
 
1444
        GValue item = { 0, };
 
1445
 
 
1446
        g_value_init (&arr, GST_TYPE_LIST);
 
1447
        g_value_init (&item, G_TYPE_STRING);
 
1448
        g_value_set_string (&item, "WVC1");
 
1449
        gst_value_list_append_value (&arr, &item);
 
1450
        g_value_set_string (&item, "WMVA");
 
1451
        gst_value_list_append_and_take_value (&arr, &item);
 
1452
        gst_caps_set_value (caps, "format", &arr);
 
1453
        g_value_unset (&arr);
 
1454
      } else {
 
1455
        gst_caps_set_simple (caps, "format", G_TYPE_STRING, "WVC1", NULL);
 
1456
      }
1442
1457
      break;
1443
1458
    case AV_CODEC_ID_QDM2:
1444
1459
      caps =